aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Liu <liuchh83@gmail.com>2018-10-30 11:08:29 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-10-30 11:08:29 +0800
commite9dbd62cb5f167c99298467db54d56c61a6be74f (patch)
tree060d4ab97d5d7ef64a22e0c8abec39f0eea30cfd
parent3d1b7954933b17fc8ff5204e231f63fcb7ff63a9 (diff)
downloadffmpeg-e9dbd62cb5f167c99298467db54d56c61a6be74f.tar.gz
avformat/hlsenc.c: fix memory leak in fmp4 mode.
Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 3ccd8756f6..c322b5a48f 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2205,6 +2205,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
avio_flush(oc->pb);
range_length = avio_close_dyn_buf(oc->pb, &buffer);
avio_write(vs->out, buffer, range_length);
+ av_free(buffer);
vs->init_range_length = range_length;
avio_open_dyn_buf(&oc->pb);
vs->packets_written = 0;