From: cristy Date: Wed, 21 Jan 2015 21:45:09 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c658afbe10e4188d58987432941c755304b2092f;p=imagemagick --- 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); }