1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

tiff: fix memleak

Fixes CID1026764
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-03 14:40:15 +02:00
parent bbf43c70dd
commit bbae652113

View File

@ -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);