From c199d41b18c5e8818cde9c4147ae087c47dcd56b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 22 Oct 2003 21:40:52 +0000 Subject: [PATCH] Unlock mutexes before deleting them --- libraries/librewrite/session.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5