From: Pierangelo Masarati Date: Sat, 1 Apr 2006 18:54:31 +0000 (+0000) Subject: thread cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9afc113c53056e2bf6b2895601d5b3435d60f52;p=openldap thread cleanup --- 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 ); }