projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c97d6
)
avformat/hlsenc: fix memleak in hls_write_trailer
author
Steven Liu
<lq@chinaffmpeg.org>
Wed, 21 Aug 2019 02:24:12 +0000
(10:24 +0800)
committer
Steven Liu
<lq@chinaffmpeg.org>
Mon, 26 Aug 2019 03:06:24 +0000
(11:06 +0800)
fix CID: 1426931
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/hlsenc.c
b/libavformat/hlsenc.c
index
18173cd
..
3c873e5
100644
(file)
--- 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);
}