Discussion:
[FFmpeg-devel] [PATCH] Fix leak of yuv_line in TiffContext.
Carl Hetherington
2018-12-10 23:52:16 UTC
Permalink
Please review... I have used FFmpeg a lot but never suggested a patch
before :)

Signed-off-by: Carl Hetherington <***@carlh.net>
---
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;
--
2.17.1
Carl Eugen Hoyos
2018-12-10 23:57:55 UTC
Permalink
Post by Carl Hetherington
Please review... I have used FFmpeg a lot but never suggested a patch
before :)
Patch applied.

Thank you, Carl Eugen

Loading...