Currently thread object is allocated space through mempool. we are not returning allocated memory back to pool when thread exits. Testcase to Reproduce ================== create and delete multiple threads using pthread_create, You will run out of slace soon.