]> git.sur5r.net Git - openldap/commitdiff
ITS#5194 zero out pool when destroying
authorHoward Chu <hyc@openldap.org>
Thu, 18 Oct 2007 21:13:43 +0000 (21:13 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Oct 2007 21:13:43 +0000 (21:13 +0000)
libraries/libldap_r/tpool.c

index 06124de96c97e1b948c77b226cfea5b85e05bd4f..6e3d81b3b2d18b99d0f5ae903277870e0827f747 100644 (file)
@@ -528,6 +528,7 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
        ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
        ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
        LDAP_FREE(pool);
+       *tpool = NULL;
        ldap_int_has_thread_pool = 0;
        return(0);
 }