[FFmpeg-cvslog] avformat/http: Use av_freep() avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sat Dec 20 17:04:46 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 16:53:37 2014 +0100| [bcd4447173c83bfeae69aa53e2e3a25c449d2a54] | committer: Michael Niedermayer
avformat/http: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bcd4447173c83bfeae69aa53e2e3a25c449d2a54
---
libavformat/http.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index d9de05c..b9e1870 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);
More information about the ffmpeg-cvslog
mailing list