From: dirk Date: Fri, 13 Jun 2014 04:56:22 +0000 (+0000) Subject: Fixed memory leak. X-Git-Tag: 7.0.1-0~2227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d61c7adb5d6f81182c79dca8ff608c1701aac8f8;p=imagemagick Fixed memory leak. --- 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); } }