1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/hlsenc: Fix a memory leak when http_persistent is 1

Reviewed-by: Steven Liu <lq@onvideo.cn>
This commit is contained in:
Karthick J 2017-12-21 11:39:24 +08:00 committed by Steven Liu
parent 7feae7be5b
commit 3ac76d890d

View File

@ -1972,6 +1972,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
av_freep(&vs->baseurl);
}
ff_format_io_close(s, &hls->m3u8_out);
ff_format_io_close(s, &hls->sub_m3u8_out);
av_freep(&hls->key_basename);
av_freep(&hls->var_streams);
av_freep(&hls->master_m3u8_url);