ffmpeg | branch: master | Karthick J <kjeya...@akamai.com> | Thu Dec 21 11:39:24 2017 +0800| [3ac76d890d91905925a4d7f66a43e0023e13e149] | committer: Steven Liu
avformat/hlsenc: Fix a memory leak when http_persistent is 1 Reviewed-by: Steven Liu <l...@onvideo.cn> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ac76d890d91905925a4d7f66a43e0023e13e149 --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 0eebcb4462..29fc1d4122 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog