[FFmpeg-cvslog] avformat/http: fix memory leak in parse_cookie.
Richard Shaffer
git at videolan.org
Fri Jan 12 13:54:16 EET 2018
ffmpeg | branch: master | Richard Shaffer <rshaffer at tunein.com> | Thu Jan 11 14:28:52 2018 -0800| [9147c0975533c83564b1ba47f22952b291b80282] | committer: Michael Niedermayer
avformat/http: fix memory leak in parse_cookie.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9147c0975533c83564b1ba47f22952b291b80282
---
libavformat/http.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index 4806b1e59b..510b23375a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -824,6 +824,7 @@ static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies)
}
}
}
+ av_dict_free(&new_params);
// duplicate the cookie name (dict will dupe the value)
if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
More information about the ffmpeg-cvslog
mailing list