diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-08-21 10:24:12 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-08-26 11:06:24 +0800 |
commit | 4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61 (patch) | |
tree | 4c1a984af17603c7df679235c3c5322e32791fd2 | |
parent | f0c97d613ea764db8e78b9cc40ff1c821b140c79 (diff) | |
download | ffmpeg-4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61.tar.gz |
avformat/hlsenc: fix memleak in hls_write_trailer
fix CID: 1426931
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r-- | libavformat/hlsenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |