Commit 9147c097 authored by Richard Shaffer's avatar Richard Shaffer Committed by Michael Niedermayer

avformat/http: fix memory leak in parse_cookie.

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 58e16a4f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment