ffmpeg | branch: release/3.3 | Stephan Holljes <klaxa1...@googlemail.com> | Fri Jan 12 19:16:29 2018 +0100| [2d975fff05488e64999360eb775c5a8219a05958] | committer: Michael Niedermayer
lavf/http.c: Free allocated client URLContext in case of error. Signed-off-by: Stephan Holljes <klaxa1...@googlemail.com> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> (cherry picked from commit 7b6b8c92652d6683d97515352e4a9a4147b7da7c) Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d975fff05488e64999360eb775c5a8219a05958 --- libavformat/http.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index d06103ab6d..a1fdd1dd56 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -538,7 +538,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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog