improper unlocking of mlogqs when writing queued logs

This commit is contained in:
Emagi 2025-06-12 13:58:40 -04:00
parent 8b48f9f902
commit b56ac0d75b

View File

@ -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) {