Commit 9481b7d9 authored by LuMingYin's avatar LuMingYin Committed by Zhao Zhili

libavformat/hlsenc: fix a memory leak on error path

Signed-off-by: 's avatarLuMingYin <lumingyindetect@163.com>
Reviewed-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent b113050d
......@@ -2757,6 +2757,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
filename = av_asprintf("%s", oc->url);
}
if (!filename) {
av_dict_free(&options);
av_freep(&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