diff --git a/funcs/fimg-tiff.c b/funcs/fimg-tiff.c index 8e8c990..ca90109 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; } /* --------------------------------------------------------------------- */