From: Howard Chu Date: Sat, 29 Apr 2006 22:31:58 +0000 (+0000) Subject: Fix tpool_shutdown, don't remove pool from list since pool_destroy X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5b8a74590b6d496826a01441e92d9a2a28fccbfc;p=openldap Fix tpool_shutdown, don't remove pool from list since pool_destroy already does it. --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 31d27b7d36..6564a9ada4 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -111,7 +111,6 @@ ldap_int_thread_pool_shutdown ( void ) struct ldap_int_thread_pool_s *pool; while ((pool = LDAP_STAILQ_FIRST(&ldap_int_thread_pool_list)) != NULL) { - LDAP_STAILQ_REMOVE_HEAD(&ldap_int_thread_pool_list, ltp_next); (ldap_pvt_thread_pool_destroy)(&pool, 0); /* ignore thr_debug macro */ } ldap_pvt_thread_mutex_destroy(&ldap_pvt_thread_pool_mutex);