mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 06:31:11 -05:00
ITS#8858 Fix use after free
This commit is contained in:
parent
c01e45daca
commit
c65cf6e6d7
1 changed files with 2 additions and 2 deletions
|
|
@ -922,11 +922,11 @@ ldap_pvt_thread_pool_free ( ldap_pvt_thread_pool_t *tpool )
|
|||
|
||||
assert( !pq->ltp_open_count );
|
||||
assert( LDAP_SLIST_EMPTY(&pq->ltp_free_list) );
|
||||
ldap_pvt_thread_cond_destroy(&pq->ltp_cond);
|
||||
ldap_pvt_thread_mutex_destroy(&pq->ltp_mutex);
|
||||
if (pq->ltp_free) {
|
||||
LDAP_FREE(pq->ltp_free);
|
||||
}
|
||||
ldap_pvt_thread_cond_destroy(&pq->ltp_cond);
|
||||
ldap_pvt_thread_mutex_destroy(&pq->ltp_mutex);
|
||||
}
|
||||
LDAP_FREE(pool->ltp_wqs);
|
||||
LDAP_FREE(pool);
|
||||
|
|
|
|||
Loading…
Reference in a new issue