Commit 2c94b1bb authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/tiff: Fix leak on error

Fixes Coverity issue #1516957.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 62929f40
......@@ -2267,8 +2267,10 @@ again:
group_size = s->width * channels;
tmpbuf = av_malloc(ssize);
if (!tmpbuf)
if (!tmpbuf) {
av_free(five_planes);
return AVERROR(ENOMEM);
}
if (s->avctx->pix_fmt == AV_PIX_FMT_RGBF32LE ||
s->avctx->pix_fmt == AV_PIX_FMT_RGBAF32LE) {
......
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