From dd367e0c3c3f37fbf1c20fa107b67a668b22c6e2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 21 Sep 2017 06:19:17 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/770 --- coders/vips.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.40.0