aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2017-12-21 11:39:24 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-21 11:39:24 +0800
commit3ac76d890d91905925a4d7f66a43e0023e13e149 (patch)
treeca8eeaceafb805c3c75c16d19315abfcc1ccfe01
parent7feae7be5b08916e1d563ad16388a3dd6d40114b (diff)
downloadffmpeg-3ac76d890d91905925a4d7f66a43e0023e13e149.tar.gz
avformat/hlsenc: Fix a memory leak when http_persistent is 1
Reviewed-by: Steven Liu <lq@onvideo.cn>
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 2 insertions, 0 deletions
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);