From 9147c0975533c83564b1ba47f22952b291b80282 Mon Sep 17 00:00:00 2001 From: Richard Shaffer Date: Thu, 11 Jan 2018 14:28:52 -0800 Subject: avformat/http: fix memory leak in parse_cookie. Signed-off-by: Michael Niedermayer --- libavformat/http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') 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); -- cgit v1.2.3