fix compile in asan

This commit is contained in:
nroskill 2023-04-13 06:07:08 +00:00 committed by ob-robot
parent 02d683674d
commit 14b2307429

View File

@ -232,10 +232,7 @@ void Thread::destroy_stack()
pth_ = 0;
}
#else
if (stack_addr_ != nullptr) {
stack_addr_ = nullptr;
pth_ = 0;
}
pth_ = 0;
#endif
}