diff options
author | Richard Shaffer <rshaffer@tunein.com> | 2018-01-11 14:28:52 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-01-12 12:31:55 +0100 |
commit | 9147c0975533c83564b1ba47f22952b291b80282 (patch) | |
tree | fb46fa7787617a700007ef250ab8c935a71d45f8 | |
parent | 58e16a4f4b70b00e1ae14c8a52aea49000fa34a3 (diff) | |
download | ffmpeg-9147c0975533c83564b1ba47f22952b291b80282.tar.gz |
avformat/http: fix memory leak in parse_cookie.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/http.c | 1 |
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); |