fix pthread_join failed in asan

This commit is contained in:
nroskill 2023-04-10 07:57:40 +00:00 committed by ob-robot
parent 30fb08200c
commit 65353931cf

View File

@ -231,6 +231,11 @@ void Thread::destroy_stack()
stack_addr_ = nullptr;
pth_ = 0;
}
#else
if (stack_addr_ != nullptr) {
stack_addr_ = nullptr;
pth_ = 0;
}
#endif
}