From a5022383aa548b1ea5e11eb0563582046c16734e Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Sep 2017 10:32:06 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/807 --- MagickCore/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0