From: Howard Chu Date: Wed, 22 Oct 2003 21:40:52 +0000 (+0000) Subject: Unlock mutexes before deleting them X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~503 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c199d41b18c5e8818cde9c4147ae087c47dcd56b;p=openldap Unlock mutexes before deleting them --- diff --git a/libraries/librewrite/session.c b/libraries/librewrite/session.c index 3366559a3d..a0c2808aed 100644 --- a/libraries/librewrite/session.c +++ b/libraries/librewrite/session.c @@ -330,6 +330,8 @@ rewrite_session_delete( rewrite_var_delete( session->ls_vars ); #ifdef USE_REWRITE_LDAP_PVT_THREADS + ldap_pvt_thread_rdwr_wunlock( &session->ls_vars_mutex ); + ldap_pvt_thread_mutex_unlock( &session->ls_mutex ); ldap_pvt_thread_rdwr_destroy( &session->ls_vars_mutex ); ldap_pvt_thread_mutex_destroy( &session->ls_mutex ); #endif /* USE_REWRITE_LDAP_PVT_THREADS */