]> git.sur5r.net Git - openldap/commitdiff
Don't free active thread list
authorLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 08:20:55 +0000 (08:20 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 08:20:55 +0000 (08:20 +0000)
libraries/libldap_r/tpool.c

index d64888d482cebd474a80e32fe02799cd5a5a1256..24f83c37d1f9a9e1b04537c6c88a5cf87ddda5b6 100644 (file)
@@ -377,11 +377,6 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
                LDAP_FREE(ctx);
        }
 
-       while ((ctx = LDAP_SLIST_FIRST(&pool->ltp_active_list)) != NULL)
-       {
-               LDAP_SLIST_REMOVE_HEAD(&pool->ltp_active_list, ltc_next.al);
-       }
-
        ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
        ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
        LDAP_FREE(pool);