[FFmpeg-cvslog] avformat/hlsenc: fix memleak at hls_write_trailer

Steven Liu git at videolan.org
Thu Sep 12 06:17:43 EEST 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Sep  9 14:15:21 2019 +0800| [9ff8fbda6598ec6ce231e81e756e2c68e9c8f59f] | committer: Steven Liu

avformat/hlsenc: fix memleak at hls_write_trailer

Found-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ff8fbda6598ec6ce231e81e756e2c68e9c8f59f
---

 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index c9858f21bf..9070a39eeb 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2643,6 +2643,7 @@ failed:
             ff_format_io_close(s, &vs->out);
             hls_window(s, 1, vs);
         }
+        ffio_free_dyn_buf(&oc->pb);
         avformat_free_context(oc);
 
         vs->avf = NULL;



More information about the ffmpeg-cvslog mailing list