Commit bbae6521 authored by Michael Niedermayer's avatar Michael Niedermayer

tiff: fix memleak

Fixes CID1026764
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bbf43c70
...@@ -453,8 +453,10 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride, ...@@ -453,8 +453,10 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride,
if (!zbuf) if (!zbuf)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
if (s->fill_order) { 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; return ret;
}
ssrc = src = s->deinvert_buf; ssrc = src = s->deinvert_buf;
} }
ret = tiff_uncompress(zbuf, &outlen, src, size); ret = tiff_uncompress(zbuf, &outlen, src, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment