]> git.sur5r.net Git - openldap/commitdiff
Unlock mutexes before deleting them
authorHoward Chu <hyc@openldap.org>
Wed, 22 Oct 2003 21:40:52 +0000 (21:40 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Oct 2003 21:40:52 +0000 (21:40 +0000)
libraries/librewrite/session.c

index 3366559a3d63aa97ffb4e42284e3e6aef5975568..a0c2808aeda70a299bc2fba735e3e6b6ec69bf36 100644 (file)
@@ -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 */