Fix a bug in threadpool about memory delete.