diff options
author | Stephan Holljes <klaxa1337@googlemail.com> | 2018-01-12 19:16:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-06-18 01:16:03 +0200 |
commit | 1d5694ba1101e6d26f15909eee0d10c6a4fe55c3 (patch) | |
tree | 86973bb563f3d81fca68ee654e77545ae5ba163a | |
parent | f93d7a0c0a233fc5992092b5764d83f3f96077d0 (diff) | |
download | ffmpeg-1d5694ba1101e6d26f15909eee0d10c6a4fe55c3.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 668cd51986..d066b639b5 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -538,7 +538,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; } |