From 2d0c5899413cc097e1c16742e28408a1eb85e32f Mon Sep 17 00:00:00 2001 From: Thierry Foucu Date: Wed, 5 Apr 2017 13:23:31 -0700 Subject: [PATCH] libavformat/mov: Fix memory leak, need to free the chapter tracks array Signed-off-by: Michael Niedermayer (cherry picked from commit ac24a8202a6fdfb469af1fa68d537fb2f8d1ba6a) Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index ce7e2ec211..12811dbf78 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5309,6 +5309,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; }