[FFmpeg-devel] [PATCH] tiff: fix leaking yuv_line

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Feb 16 01:23:28 EET 2017


Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
---
 libavcodec/tiff.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index efbd9791a5..474ea90015 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1386,6 +1386,7 @@ static av_cold int tiff_end(AVCodecContext *avctx)
 
     ff_lzw_decode_close(&s->lzw);
     av_freep(&s->deinvert_buf);
+    av_freep(&s->yuv_line);
     return 0;
 }
 
-- 
2.11.0


More information about the ffmpeg-devel mailing list