avformat/http: fix memory leak in parse_cookie.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/304/head
Richard Shaffer 7 years ago committed by Michael Niedermayer
parent 58e16a4f4b
commit 9147c09755
  1. 1
      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);

Loading…
Cancel
Save