From d2b87b403059af21db3002db95f4603f32b492ef Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Sep 2017 09:42:04 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/792 --- MagickCore/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index bf27dea02..78e81fbe6 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -1163,7 +1163,7 @@ static void BenchmarkOpenCLDevices(MagickCLEnv clEnv) testEnv=AcquireMagickCLEnv(); testEnv->library=openCL_library; - testEnv->devices=(MagickCLDevice *) AcquireMagickMemory( + testEnv->devices=(MagickCLDevice *) AcquireCriticalMemory( sizeof(MagickCLDevice)); testEnv->number_devices=1; testEnv->benchmark_thread_id=GetMagickThreadId(); -- 2.40.0