From 09c422295eaab3f11cd23165afb8eeaecba1dc0e Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 22 Apr 2019 07:22:55 -0400 Subject: [PATCH] ... --- MagickCore/log.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MagickCore/log.c b/MagickCore/log.c index 33f2815eb..f75191c34 100644 --- a/MagickCore/log.c +++ b/MagickCore/log.c @@ -892,9 +892,8 @@ static void *DestroyLogElement(void *log_info) p->path=DestroyString(p->path); if (p->filename != (char *) NULL) p->filename=DestroyString(p->filename); - if (p->event_semaphore == (SemaphoreInfo *) NULL) - ActivateSemaphoreInfo(&p->event_semaphore); - RelinquishSemaphoreInfo(&p->event_semaphore); + if (p->event_semaphore != (SemaphoreInfo *) NULL) + RelinquishSemaphoreInfo(&p->event_semaphore); p=(LogInfo *) RelinquishMagickMemory(p); return((void *) NULL); } -- 2.40.0