From: Cristy Date: Sat, 30 Sep 2017 14:27:34 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/806 X-Git-Tag: 7.0.7-5~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=763ace0fe03057648abda9272bfbf29d8b639cae;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/806 --- diff --git a/MagickCore/nt-base.c b/MagickCore/nt-base.c index 2cf9f02df..7d45b97ab 100644 --- a/MagickCore/nt-base.c +++ b/MagickCore/nt-base.c @@ -1787,7 +1787,7 @@ MagickPrivate DIR *NTOpenDirectory(const char *path) if (wcsncat(file_specification,(const wchar_t*) DirectorySeparator, MagickPathExtent-wcslen(file_specification)-1) == (wchar_t*) NULL) return((DIR *) NULL); - entry=(DIR *) AcquireMagickMemory(sizeof(DIR)); + entry=(DIR *) AcquireCriticalMemory(sizeof(DIR)); if (entry != (DIR *) NULL) { entry->firsttime=TRUE;