From 5a222552d043ad77fd0a78d7a9ec4fc2f2e3ee55 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Sep 2017 09:59:48 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/799 --- MagickCore/segment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/segment.c b/MagickCore/segment.c index e47d0cd4b..83b0c5639 100644 --- a/MagickCore/segment.c +++ b/MagickCore/segment.c @@ -1391,13 +1391,13 @@ static IntervalTree *InitializeIntervalTree(const ZeroCrossing *zero_crossing, { if (node == head) { - node->child=(IntervalTree *) AcquireMagickMemory( + node->child=(IntervalTree *) AcquireCriticalMemory( sizeof(*node->child)); node=node->child; } else { - node->sibling=(IntervalTree *) AcquireMagickMemory( + node->sibling=(IntervalTree *) AcquireCriticalMemory( sizeof(*node->sibling)); node=node->sibling; } -- 2.40.0