Commit 3ac76d89 authored by Karthick J's avatar Karthick J Committed by Steven Liu

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

Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
parent 7feae7be
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment