1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavc/tiff: Fix leak of yuv_line in TiffContext.

Signed-off-by: Carl Hetherington <cth@carlh.net>
This commit is contained in:
Carl Hetherington 2018-12-10 23:52:16 +00:00 committed by Carl Eugen Hoyos
parent 73251678c8
commit 6190f873eb

View 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;