From a9f9b7f5c70e80245983e67b8ed23212d9637645 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 4 Mar 2017 19:19:31 +0100 Subject: [PATCH] avcodec/movtextdec: Call mov_text_cleanup() on close 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 --- libavcodec/movtextdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c index 81fd1d6deb..6de15004fc 100644 --- a/libavcodec/movtextdec.c +++ b/libavcodec/movtextdec.c @@ -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; }