]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/807
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 14:32:06 +0000 (10:32 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 14:32:06 +0000 (10:32 -0400)
MagickCore/opencl.c

index b913d66797ffe9800a2d13eae3b9db40b5b57c8c..a3e972cf4d18a06344ad3bf4689dc63de9ad5e7a 100644 (file)
@@ -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);