]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/770
authorCristy <urban-warrior@imagemagick.org>
Thu, 21 Sep 2017 10:19:17 +0000 (06:19 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 21 Sep 2017 10:19:17 +0000 (06:19 -0400)
coders/vips.c

index 856276cbb0d165f2fd037ebec0dd95b9054f1eeb..c797a8704ecb3ccd60f8453424f3d9ef2a353914 100644 (file)
@@ -511,7 +511,10 @@ static Image *ReadVIPSImage(const ImageInfo *image_info,
       (void) ConcatenateString(&metadata,buffer);
   }
   if (metadata != (char *) NULL)
-    SetImageProperty(image,"vips:metadata",metadata,exception);
+    { 
+      SetImageProperty(image,"vips:metadata",metadata,exception);
+      metadata=(char *) RelinquishMagickMemory(metadata);
+    }
   (void) CloseBlob(image);
   if (status == MagickFalse)
     return((Image *) NULL);