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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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