From: Howard Chu Date: Thu, 18 Oct 2007 21:13:43 +0000 (+0000) Subject: ITS#5194 zero out pool when destroying X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~500 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13c6ef95ce84f45997c71929437576cd953c2c3f;p=openldap ITS#5194 zero out pool when destroying --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 06124de96c..6e3d81b3b2 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -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); }