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

Steven Liu git at videolan.org
Mon Aug 26 06:08:20 EEST 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Wed Aug 21 10:24:12 2019 +0800| [4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61] | committer: Steven Liu

avformat/hlsenc: fix memleak in hls_write_trailer

fix CID: 1426931

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

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

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

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 18173cdce1..3c873e5357 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2538,6 +2538,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
             filename = av_asprintf("%s", vs->avf->url);
         }
         if (!filename) {
+            av_free(old_filename);
             return AVERROR(ENOMEM);
         }
 



More information about the ffmpeg-cvslog mailing list