Commit 4ba82ecc authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: fix memleak in hls_write_trailer

fix CID: 1426931
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent f0c97d61
......@@ -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);
}
......
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