ITS#5194 zero out pool when destroying

This commit is contained in:
Howard Chu 2007-10-18 21:13:43 +00:00
parent 6775e25ba3
commit 13c6ef95ce

View File

@ -528,6 +528,7 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
LDAP_FREE(pool);
*tpool = NULL;
ldap_int_has_thread_pool = 0;
return(0);
}