diff options
author | Stephan Holljes <[email protected]> | 2018-01-12 19:16:29 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2018-04-20 01:53:41 +0200 |
commit | b9b3ef4f5a51a020911d6fb2b1dc672d4c0a769f (patch) | |
tree | b071dfb5acf269dd4c542e109767d5b1e27e68fa | |
parent | b2b7cb0f606ced3b705f0cef5f5ba0cdda784adf (diff) |
lavf/http.c: Free allocated client URLContext in case of error.
Signed-off-by: Stephan Holljes <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 7b6b8c92652d6683d97515352e4a9a4147b7da7c)
Signed-off-by: Michael Niedermayer <[email protected]>
-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 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; } |