From: Cristy Date: Sat, 30 Sep 2017 13:44:14 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/793 X-Git-Tag: 7.0.7-5~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f368e74a51ec7541b6595af712d17d6d1376534;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/793 --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 78e81fbe6..0191a8032 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -1305,7 +1305,7 @@ static void LogOpenCLBuildFailure(MagickCLDevice device,const char *kernel, openCL_library->clGetProgramBuildInfo(device->program,device->deviceID, CL_PROGRAM_BUILD_LOG,0,NULL,&log_size); - log=(char*)AcquireMagickMemory(log_size); + log=(char*)AcquireCriticalMemory(log_size); openCL_library->clGetProgramBuildInfo(device->program,device->deviceID, CL_PROGRAM_BUILD_LOG,log_size,log,&log_size);