avformat/hlsenc: fix memleak at hls_write_trailer

Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-09-09 14:15:21 +08:00
parent 5b809a8d4b
commit 9ff8fbda65

View File

@ -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;