From b56ac0d75b59107ab699ce6030ba74ada3f186eb Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 12 Jun 2025 13:58:40 -0400 Subject: [PATCH] improper unlocking of mlogqs when writing queued logs --- source/common/Log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/Log.cpp b/source/common/Log.cpp index 0c59aa9..b74be71 100644 --- a/source/common/Log.cpp +++ b/source/common/Log.cpp @@ -257,11 +257,11 @@ static void WriteQueuedLogs(int count) { tmp = logq; logq = logq->next; - mlogqs.releasewritelock(); - free(tmp->text); free(tmp); } + + mlogqs.releasewritelock(); } ThreadReturnType LogLoop(void *args) {