Skip to content
Snippets Groups Projects
Commit 3ac76d89 authored by Karthick J's avatar Karthick J Committed by Steven Liu
Browse files

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


Reviewed-by: default avatarSteven Liu <lq@onvideo.cn>
parent 7feae7be
No related branches found
No related tags found
No related merge requests found
...@@ -1972,6 +1972,8 @@ static int hls_write_trailer(struct AVFormatContext *s) ...@@ -1972,6 +1972,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
av_freep(&vs->baseurl); 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->key_basename);
av_freep(&hls->var_streams); av_freep(&hls->var_streams);
av_freep(&hls->master_m3u8_url); av_freep(&hls->master_m3u8_url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment