summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-08-21 10:24:12 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-08-26 11:06:24 +0800
commit4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61 (patch)
tree4c1a984af17603c7df679235c3c5322e32791fd2 /libavformat
parentf0c97d613ea764db8e78b9cc40ff1c821b140c79 (diff)
avformat/hlsenc: fix memleak in hls_write_trailer
fix CID: 1426931 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c1
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);
}