Browse Source

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>
tags/n3.0.12
Stephan Holljes Michael Niedermayer 8 years ago
parent
commit
73d07e320c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/http.c

+ 4
- 0
libavformat/http.c View File

@@ -526,7 +526,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…
Cancel
Save