Commit ba436c15 authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: free options fix memleak in hls_write_trailer

Signed-off-by: 's avatarSteven Liu <liuqi05@kuaishou.com>
parent 76eaca43
...@@ -2685,9 +2685,10 @@ static int hls_write_trailer(struct AVFormatContext *s) ...@@ -2685,9 +2685,10 @@ static int hls_write_trailer(struct AVFormatContext *s)
if (ret < 0) if (ret < 0)
av_log(s, AV_LOG_WARNING, "Failed to upload file '%s' at the end.\n", oc->url); av_log(s, AV_LOG_WARNING, "Failed to upload file '%s' at the end.\n", oc->url);
} }
av_freep(&vs->temp_buffer);
failed: failed:
av_freep(&vs->temp_buffer);
av_dict_free(&options);
av_freep(&filename); av_freep(&filename);
av_write_trailer(oc); av_write_trailer(oc);
if (oc->url[0]) { if (oc->url[0]) {
......
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