From: Cristy Date: Thu, 21 Sep 2017 10:19:17 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/770 X-Git-Tag: 7.0.7-4~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd367e0c3c3f37fbf1c20fa107b67a668b22c6e2;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/770 --- diff --git a/coders/vips.c b/coders/vips.c index 856276cbb..c797a8704 100644 --- a/coders/vips.c +++ b/coders/vips.c @@ -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);