[FFmpeg-cvslog] lavc/tiff: Fix leak of yuv_line in TiffContext.
Carl Hetherington
git at videolan.org
Tue Dec 11 01:57:30 EET 2018
ffmpeg | branch: master | Carl Hetherington <lists at carlh.net> | Mon Dec 10 23:52:16 2018 +0000| [6190f873eb6d1f2000d64f04e685575e687b61f1] | committer: Carl Eugen Hoyos
lavc/tiff: Fix leak of yuv_line in TiffContext.
Signed-off-by: Carl Hetherington <cth at carlh.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6190f873eb6d1f2000d64f04e685575e687b61f1
---
libavcodec/tiff.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 751f23ef33..f71885d156 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list