diff mbox

[FFmpeg-devel] libavformat/mov: Fix memory leak, need to free the chapter tracks array

Message ID 20170405202331.11442-1-tfoucu@gmail.com
State Accepted
Commit ac24a8202a6fdfb469af1fa68d537fb2f8d1ba6a
Headers show

Commit Message

Thierry Foucu April 5, 2017, 8:23 p.m. UTC
---
 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer April 6, 2017, 2:06 a.m. UTC | #1
On Wed, Apr 05, 2017 at 01:23:31PM -0700, Thierry Foucu wrote:
> ---
>  libavformat/mov.c | 1 +
>  1 file changed, 1 insertion(+)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 90bc2499da..f2296f8917 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -5794,6 +5794,7 @@  static int mov_read_close(AVFormatContext *s)
     av_freep(&mov->fragment_index_data);
 
     av_freep(&mov->aes_decrypt);
+    av_freep(&mov->chapter_tracks);
 
     return 0;
 }