From: Howard Chu Date: Tue, 24 Jan 2006 23:31:56 +0000 (+0000) Subject: ITS#4368 unlock pool ltp_mutex before destroying it X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~270 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9870eba3ee024889bcaae17bbd636f147e268353;p=openldap ITS#4368 unlock pool ltp_mutex before destroying it --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 21d98d6465..a9ec8f4795 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -511,6 +511,7 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending ) ldap_pvt_thread_cond_broadcast(&pool->ltp_cond); ldap_pvt_thread_cond_wait(&pool->ltp_cond, &pool->ltp_mutex); } + ldap_pvt_thread_mutex_unlock(&pool->ltp_mutex); while ((ctx = LDAP_STAILQ_FIRST(&pool->ltp_pending_list)) != NULL) {