fix memory leak in class pool(#455)

This commit is contained in:
Jinhao 2019-07-18 21:29:02 +08:00
parent 3104712caa
commit 496d157b4b

View File

@ -141,6 +141,7 @@ namespace threads
::pthread_join(thr->handle, 0); ::pthread_join(thr->handle, 0);
::pthread_detach(thr->handle); ::pthread_detach(thr->handle);
#endif #endif
delete thr;
} }
std::lock_guard<decltype(mutex_)> lock(mutex_); std::lock_guard<decltype(mutex_)> lock(mutex_);