debug: dont manually unlock the lock_guard (#7210)

when lock_guard goes out of scope it RAII itself and calls unlock.
causes crashes on freebsd/libc++ and double unlocking a mutex is UB.
This commit is contained in:
Tom Englund
2024-08-07 13:22:01 +02:00
committed by GitHub
parent fa6ee51367
commit 5b736a4a66

View File

@@ -72,6 +72,5 @@ namespace Debug {
logMsg += std::vformat(fmt.get(), std::make_format_args(args...));
log(level, logMsg);
logMutex.unlock();
}
};