[FFmpeg-devel] [PATCH] avformat/hlsenc: Fix a memory leak when http_persistent is 1

刘歧 lq at chinaffmpeg.org
Tue Dec 19 10:49:59 EET 2017


> On 19 Dec 2017, at 14:58, Karthick J <kjeyapal at akamai.com> wrote:
> 
> From: Karthick Jeyapal <kjeyapal at akamai.com>
> 
> ---
> libavformat/hlsenc.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index e3442c3..5ee28ea 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -1918,6 +1918,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);
> -- 
> 1.9.1
> 
> 


LGTM

Thanks

Steven



More information about the ffmpeg-devel mailing list