From: Cristy Date: Mon, 22 Apr 2019 11:22:55 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-42~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09c422295eaab3f11cd23165afb8eeaecba1dc0e;p=imagemagick ... --- 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); }