From d61c7adb5d6f81182c79dca8ff608c1701aac8f8 Mon Sep 17 00:00:00 2001 From: dirk Date: Fri, 13 Jun 2014 04:56:22 +0000 Subject: [PATCH] Fixed memory leak. --- MagickCore/locale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/locale.c b/MagickCore/locale.c index 866b21db7..44c7b1256 100644 --- a/MagickCore/locale.c +++ b/MagickCore/locale.c @@ -848,8 +848,9 @@ MagickExport LinkedListInfo *GetLocaleOptions(const char *filename, { xml=AcquireStringInfo(0); SetStringInfoLength(xml,strlen(blob)+1); - SetStringInfoDatum(xml,(unsigned char *) blob); + SetStringInfoDatum(xml,(const unsigned char *) blob); SetStringInfoPath(xml,filename); + blob=(char *)RelinquishMagickMemory(blob); (void) AppendValueToLinkedList(messages,xml); } } -- 2.40.0