aboutsummaryrefslogtreecommitdiffstats
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:53:41 +0200
commitb9b3ef4f5a51a020911d6fb2b1dc672d4c0a769f (patch)
treeb071dfb5acf269dd4c542e109767d5b1e27e68fa
parentb2b7cb0f606ced3b705f0cef5f5ba0cdda784adf (diff)
downloadffmpeg-b9b3ef4f5a51a020911d6fb2b1dc672d4c0a769f.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 983034f083..4fdb2f13f2 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;
}