From b30433f57ba85b730b6ed4ce052408a1dddac861 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 7 Sep 2017 07:31:54 -0400 Subject: [PATCH] ... --- coders/tiff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coders/tiff.c b/coders/tiff.c index 2376e8b2b..e3e285054 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1645,7 +1645,10 @@ RestoreMSCWarning } status=SetImageExtent(image,image->columns,image->rows,exception); if (status == MagickFalse) - return(DestroyImageList(image)); + { + TIFFClose(tiff); + return(DestroyImageList(image)); + } /* Allocate memory for the image and pixel buffer. */ -- 2.40.0