[FFmpeg-cvslog] avformat/hlsenc: fix memleak of filename
Steven Liu
git at videolan.org
Mon Aug 26 06:08:23 EEST 2019
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Wed Aug 21 10:24:25 2019 +0800| [80d2a7f5c64f7a0f8534373e246066cf733c70d8] | committer: Steven Liu
avformat/hlsenc: fix memleak of filename
CID: 1452445
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80d2a7f5c64f7a0f8534373e246066cf733c70d8
---
libavformat/hlsenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 3c873e5357..03b06cabe8 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2579,9 +2579,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
vs->size = range_length;
hlsenc_io_close(s, &vs->out, filename);
- av_free(filename);
-
failed:
+ av_free(filename);
av_write_trailer(oc);
if (oc->url[0]) {
proto = avio_find_protocol_name(oc->url);
More information about the ffmpeg-cvslog
mailing list