lavc/tiff: Fix leak of yuv_line in TiffContext.
authorCarl Hetherington <lists@carlh.net>
Mon, 10 Dec 2018 23:52:16 +0000 (23:52 +0000)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 10 Dec 2018 23:57:01 +0000 (00:57 +0100)
Signed-off-by: Carl Hetherington <cth@carlh.net>
libavcodec/tiff.c

index 751f23e..f71885d 100644 (file)
@@ -1550,6 +1550,8 @@ static av_cold int tiff_end(AVCodecContext *avctx)
     ff_lzw_decode_close(&s->lzw);
     av_freep(&s->deinvert_buf);
     s->deinvert_buf_size = 0;
+    av_freep(&s->yuv_line);
+    s->yuv_line_size = 0;
     av_freep(&s->fax_buffer);
     s->fax_buffer_size = 0;
     return 0;