]> git.sur5r.net Git - openldap/commitdiff
thread cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 18:54:31 +0000 (18:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 18:54:31 +0000 (18:54 +0000)
libraries/librewrite/session.c

index 1471ec787e57a503b9cd426d03894f7cfb2884f6..bcec2d401f337243a1c452a8426b5bb4bde08296 100644 (file)
@@ -324,6 +324,9 @@ rewrite_session_clean( void *v_session )
 static void
 rewrite_session_free( void *v_session )
 {
+       struct rewrite_session  *session = (struct rewrite_session *)v_session;
+
+       ldap_pvt_thread_mutex_lock( &session->ls_mutex );
        rewrite_session_clean( v_session );
        free( v_session );
 }