Commit c65cf6e6 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#8858 Fix use after free

parent c01e45da
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment