From d9afc113c53056e2bf6b2895601d5b3435d60f52 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 1 Apr 2006 18:54:31 +0000 Subject: [PATCH] thread cleanup --- libraries/librewrite/session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/librewrite/session.c b/libraries/librewrite/session.c index 1471ec787e..bcec2d401f 100644 --- a/libraries/librewrite/session.c +++ b/libraries/librewrite/session.c @@ -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 ); } -- 2.39.5