Commit 7b6b8c92 authored by Stephan Holljes's avatar Stephan Holljes Committed by Michael Niedermayer

lavf/http.c: Free allocated client URLContext in case of error.

Signed-off-by: 's avatarStephan Holljes <klaxa1337@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 13b77af2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment