mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02: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;
|
||||
|
||||
read_chomp_line(in, line, sizeof(line));
|
||||
if (strcmp(line, "#EXTM3U"))
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (strcmp(line, "#EXTM3U")) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
free_segment_list(s);
|
||||
s->finished = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user