diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-08-21 10:24:25 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-08-26 11:06:36 +0800 |
commit | 80d2a7f5c64f7a0f8534373e246066cf733c70d8 (patch) | |
tree | 9a6b5c2c561420a6860a36c399d12b43eb27efe4 | |
parent | 4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61 (diff) | |
download | ffmpeg-80d2a7f5c64f7a0f8534373e246066cf733c70d8.tar.gz |
avformat/hlsenc: fix memleak of filename
CID: 1452445
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r-- | libavformat/hlsenc.c | 3 |
1 files changed, 1 insertions, 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); |