From e3cd73e7db572e1e81dc7d72901cbe096f480da7 Mon Sep 17 00:00:00 2001 From: tth Date: Sat, 22 Aug 2020 08:42:07 +0200 Subject: [PATCH] clean after use --- funcs/fimg-tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funcs/fimg-tiff.c b/funcs/fimg-tiff.c index 8e8c990f..ca901092 100644 --- a/funcs/fimg-tiff.c +++ b/funcs/fimg-tiff.c @@ -79,12 +79,12 @@ for (y=0; yheight; y++) { TIFFWriteScanline(tiff, linebuff, y, 0); idx += src->width; - } - TIFFClose(tiff); +free(linebuff); + return -1; } /* --------------------------------------------------------------------- */