Commit bcd44471 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/http: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 081913ae
......@@ -643,9 +643,9 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
}
done_cookie:
av_free(cdomain);
av_free(cpath);
av_free(cvalue);
av_freep(&cdomain);
av_freep(&cpath);
av_freep(&cvalue);
if (ret < 0) {
if (*cookies) av_freep(cookies);
av_free(cset_cookies);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment