aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2018-01-12 19:16:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-07-08 19:45:46 +0200
commitfbb65e77b6ee607747d0d8edaf692480b841b4b1 (patch)
treeb6741d342a0b88a246292a4ce27c7424fbb9ebc1
parent05f4488bd7b9122b864fbea437573226d43237b8 (diff)
downloadffmpeg-fbb65e77b6ee607747d0d8edaf692480b841b4b1.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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index bd1be3f7bb..64549612d0 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -535,7 +535,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;
}