diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-20 16:53:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-20 16:53:37 +0100 |
commit | bcd4447173c83bfeae69aa53e2e3a25c449d2a54 (patch) | |
tree | 6951e1220a5e8d5a4e392976a309a16c54d71495 /libavformat | |
parent | 081913aec53b7459711afe11f44a763dcd74703d (diff) | |
download | ffmpeg-bcd4447173c83bfeae69aa53e2e3a25c449d2a54.tar.gz |
avformat/http: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index d9de05c968..b9e18701fb 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -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); |