From 13c6ef95ce84f45997c71929437576cd953c2c3f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Oct 2007 21:13:43 +0000 Subject: [PATCH] ITS#5194 zero out pool when destroying --- libraries/libldap_r/tpool.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5