avcodec/movtextdec: Call mov_text_cleanup() on close
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Mar 2017 18:19:31 +0000 (19:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 6 Mar 2017 15:47:17 +0000 (16:47 +0100)
Fixes memleak
Fixes: 548/clusterfuzz-testcase-5511470875934720

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/movtextdec.c

index 81fd1d6..6de1500 100644 (file)
@@ -521,6 +521,7 @@ static int mov_text_decode_close(AVCodecContext *avctx)
 {
     MovTextContext *m = avctx->priv_data;
     mov_text_cleanup_ftab(m);
+    mov_text_cleanup(m);
     return 0;
 }