]> git.sur5r.net Git - openldap/commitdiff
Fix tpool_shutdown, don't remove pool from list since pool_destroy
authorHoward Chu <hyc@openldap.org>
Sat, 29 Apr 2006 22:31:58 +0000 (22:31 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 29 Apr 2006 22:31:58 +0000 (22:31 +0000)
already does it.

libraries/libldap_r/tpool.c

index 31d27b7d3638ac32b2724b96f42b6d93bbca4cc4..6564a9ada48876398a6a4e747a1527577ad7ffb8 100644 (file)
@@ -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);