mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#5194 zero out pool when destroying
This commit is contained in:
parent
6775e25ba3
commit
13c6ef95ce
@ -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_cond_destroy(&pool->ltp_cond);
|
||||||
ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
|
ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
|
||||||
LDAP_FREE(pool);
|
LDAP_FREE(pool);
|
||||||
|
*tpool = NULL;
|
||||||
ldap_int_has_thread_pool = 0;
|
ldap_int_has_thread_pool = 0;
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user