diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 14:40:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 14:59:52 +0200 |
commit | bbae6521136b2ce2ce5453dc2909a07941b7e18e (patch) | |
tree | b2e2434b9992fa891881aad0b6b1a997ab2295f9 | |
parent | bbf43c70dd43482a94aef3ebcb767830069bd1c0 (diff) | |
download | ffmpeg-bbae6521136b2ce2ce5453dc2909a07941b7e18e.tar.gz |
tiff: fix memleak
Fixes CID1026764
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/tiff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 9a2139f608..48807faeb4 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -453,8 +453,10 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride, if (!zbuf) return AVERROR(ENOMEM); if (s->fill_order) { - if ((ret = deinvert_buffer(s, src, size)) < 0) + if ((ret = deinvert_buffer(s, src, size)) < 0) { + av_free(zbuf); return ret; + } ssrc = src = s->deinvert_buf; } ret = tiff_uncompress(zbuf, &outlen, src, size); |