]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 21:45:09 +0000 (21:45 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 21:45:09 +0000 (21:45 +0000)
MagickCore/blob.c

index 460167b1388d17c6242caddc670c2fa8e3b8c228..0b7725688e54e0d6086519dc5d239598371cfa83 100644 (file)
@@ -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);
     }