From 9ff8fbda6598ec6ce231e81e756e2c68e9c8f59f Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Mon, 9 Sep 2019 14:15:21 +0800 Subject: [PATCH] avformat/hlsenc: fix memleak at hls_write_trailer Found-by: Andreas Rheinhardt Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index c9858f21bf..9070a39eeb 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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;