Commit 80d2a7f5 authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: fix memleak of filename

CID: 1452445
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 4ba82ecc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment