mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
CPUThread: fix ASAN use-after-free
This commit is contained in:
parent
e9fb3572f9
commit
a1a140db91
1 changed files with 7 additions and 1 deletions
|
|
@ -729,8 +729,14 @@ void cpu_thread::operator()()
|
|||
{
|
||||
if (_this)
|
||||
{
|
||||
sys_log.warning("CPU Thread '%s' terminated abnormally!", name);
|
||||
cleanup();
|
||||
|
||||
auto log_thread = named_thread("CPU Thread Cleanup Logger", [name = name]()
|
||||
{
|
||||
sys_log.warning("CPU Thread '%s' terminated abnormally!", name);
|
||||
});
|
||||
|
||||
log_thread();
|
||||
}
|
||||
}
|
||||
} cleanup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue