mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-01 22:49:21 +00: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)
|
// duplicate the cookie name (dict will dupe the value)
|
||||||
if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
|
if (!(eql = strchr(p, '='))) return AVERROR(EINVAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user