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

Thierry Foucu git at videolan.org
Thu Apr 6 05:11:06 EEST 2017


ffmpeg | branch: master | Thierry Foucu <tfoucu at gmail.com> | Wed Apr  5 13:23:31 2017 -0700| [ac24a8202a6fdfb469af1fa68d537fb2f8d1ba6a] | committer: Michael Niedermayer

libavformat/mov: Fix memory leak, need to free the chapter tracks array

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac24a8202a6fdfb469af1fa68d537fb2f8d1ba6a
---

 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 90bc249..f2296f8 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;
 }



More information about the ffmpeg-cvslog mailing list