diff options
author | Stephan Holljes <klaxa1337@googlemail.com> | 2018-01-12 19:16:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-23 01:44:40 +0200 |
commit | 73d07e320c4a3f1c647bb5b64a2f2ba144e5caaa (patch) | |
tree | 6853802e871cf0615408da59690478b1e4309bf2 | |
parent | 3bf0a405f051345b17d7dab7213c285a1bd77216 (diff) | |
download | ffmpeg-73d07e320c4a3f1c647bb5b64a2f2ba144e5caaa.tar.gz |
lavf/http.c: Free allocated client URLContext in case of error.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7b6b8c92652d6683d97515352e4a9a4147b7da7c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 5bb8d586de..b2cba61797 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -526,7 +526,11 @@ static int http_accept(URLContext *s, URLContext **c) goto fail; cc->hd = cl; cc->is_multi_client = 1; + return 0; fail: + if (c) { + ffurl_closep(c); + } return ret; } |