From: Cristy Date: Sat, 30 Sep 2017 14:32:06 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/807 X-Git-Tag: 7.0.7-5~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5022383aa548b1ea5e11eb0563582046c16734e;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/807 --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index b913d6679..a3e972cf4 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -354,7 +354,7 @@ static const char *GetOpenCLCacheDirectory() if (status != MagickFalse) { - temp=(char*) AcquireMagickMemory(strlen(path)+1); + temp=(char*) AcquireCriticalMemory(strlen(path)+1); CopyMagickString(temp,path,strlen(path)+1); } home=DestroyString(home);