avformat/hlsenc: fix memleak at hls_write_trailer
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 9 Sep 2019 06:15:21 +0000 (14:15 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Sep 2019 02:40:41 +0000 (10:40 +0800)
Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c

index c9858f2..9070a39 100644 (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;