summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2018-01-12 19:16:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-04-20 01:46:32 +0200
commit7b6b8c92652d6683d97515352e4a9a4147b7da7c (patch)
tree0427ed6ec9052b3ed1e419ee5fa41e6dbd96b290 /libavformat/http.c
parent13b77af2f0b56d6c87bb147947337981c21f4245 (diff)
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>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index d59ffbbbe8..d76a58bbbb 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -576,7 +576,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;
}