summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2017-04-05 13:23:31 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2017-04-06 04:05:04 +0200
commitac24a8202a6fdfb469af1fa68d537fb2f8d1ba6a (patch)
tree680edd3d78d6946ca5a01c288dc00b178fc0fa73 /libavformat
parent9fe73b0147d329bb03ea57c201dc99317cbf3c29 (diff)
libavformat/mov: Fix memory leak, need to free the chapter tracks array
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
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;
}