[FFmpeg-devel] [PATCH 1/2] lavf/http.c: Free allocated client URLContext in case of error.
Stephan Holljes
klaxa1337 at googlemail.com
Tue Apr 11 20:13:31 EEST 2017
---
libavformat/http.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index 293a8a7..f364f1b 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -536,6 +536,9 @@ static int http_accept(URLContext *s, URLContext **c)
cc->hd = cl;
cc->is_multi_client = 1;
fail:
+ if (ret < 0 && c) {
+ ffurl_close(*c);
+ }
return ret;
}
--
2.9.3
More information about the ffmpeg-devel
mailing list