mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-23 04:16:07 +00:00
hlsproto: Properly close avio buffer in case of error
Fix a memory leak. CC: libav-stable@libav.org Bug-Id: CID 717999
This commit is contained in:
parent
4c5fa628da
commit
7915e6741d
@ -121,8 +121,10 @@ static int parse_playlist(URLContext *h, const char *url)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
read_chomp_line(in, line, sizeof(line));
|
read_chomp_line(in, line, sizeof(line));
|
||||||
if (strcmp(line, "#EXTM3U"))
|
if (strcmp(line, "#EXTM3U")) {
|
||||||
return AVERROR_INVALIDDATA;
|
ret = AVERROR_INVALIDDATA;
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
free_segment_list(s);
|
free_segment_list(s);
|
||||||
s->finished = 0;
|
s->finished = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user