fix memleak at hls_write_trailer

Found-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com>
Signed-off-by: Steven Liu <l...@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f881bb9d60..218bfb2cba 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2641,6 +2641,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;
-- 
2.17.2 (Apple Git-113)



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to