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:
committed by
Michael Niedermayer
parent
3bf0a405f0
commit
73d07e320c
@ -526,7 +526,11 @@ static int http_accept(URLContext *s, URLContext **c)
|
|||||||
goto fail;
|
goto fail;
|
||||||
cc->hd = cl;
|
cc->hd = cl;
|
||||||
cc->is_multi_client = 1;
|
cc->is_multi_client = 1;
|
||||||
|
return 0;
|
||||||
fail:
|
fail:
|
||||||
|
if (c) {
|
||||||
|
ffurl_closep(c);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user