1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/http: fix memory leak in parse_cookie.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Richard Shaffer 2018-01-11 14:28:52 -08:00 committed by Michael Niedermayer
parent 58e16a4f4b
commit 9147c09755

View File

@ -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);