aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Shaffer <rshaffer@tunein.com>2018-01-11 14:28:52 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-01-12 12:31:55 +0100
commit9147c0975533c83564b1ba47f22952b291b80282 (patch)
treefb46fa7787617a700007ef250ab8c935a71d45f8
parent58e16a4f4b70b00e1ae14c8a52aea49000fa34a3 (diff)
downloadffmpeg-9147c0975533c83564b1ba47f22952b291b80282.tar.gz
avformat/http: fix memory leak in parse_cookie.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/http.c1
1 files changed, 1 insertions, 0 deletions
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);