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:
parent
58e16a4f4b
commit
9147c09755
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user