Commit 9ff8fbda authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: fix memleak at hls_write_trailer

Found-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 5b809a8d
......@@ -2643,6 +2643,7 @@ failed:
ff_format_io_close(s, &vs->out);
hls_window(s, 1, vs);
}
ffio_free_dyn_buf(&oc->pb);
avformat_free_context(oc);
vs->avf = NULL;
......
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