From 70ed4a46469c97fdce46a911ae4a006f3aa8f565 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 15 Apr 2019 17:54:17 -0400 Subject: [PATCH] Must unlock mutex before destructor as we do some logging in the mutex destructor when we destroy it while locked. --- src/zm_logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index 229e16aa4..2089fecc3 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -572,6 +572,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co free(filecopy); if ( level <= FATAL ) { + log_mutex.unlock(); logTerm(); zmDbClose(); if ( level <= PANIC )