mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-24 15:57:00 +00:00
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 7b6b8c9265
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
05f4488bd7
commit
fbb65e77b6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user