From c658afbe10e4188d58987432941c755304b2092f Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 21 Jan 2015 21:45:09 +0000 Subject: [PATCH] --- MagickCore/blob.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 460167b13..0b7725688 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -2032,6 +2032,7 @@ MagickExport MagickBooleanType InjectImageBlob(const ImageInfo *image_info, if (buffer == (unsigned char *) NULL) { (void) RelinquishUniqueFileResource(filename); + file=close(file); ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); } -- 2.40.0