From: Pierangelo Masarati Date: Wed, 9 Nov 2005 03:28:55 +0000 (+0000) Subject: remove from AVL before freeing... X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=114584099458968db54d9077cebfa5285ea81f6e;p=openldap remove from AVL before freeing... --- diff --git a/servers/slapd/back-meta/conn.c b/servers/slapd/back-meta/conn.c index e30bedb9b3..384e07b6f1 100644 --- a/servers/slapd/back-meta/conn.c +++ b/servers/slapd/back-meta/conn.c @@ -1141,6 +1141,8 @@ meta_back_release_conn( assert( mc->mc_refcnt > 0 ); mc->mc_refcnt--; if ( mc->mc_refcnt == 0 && mc->mc_tainted ) { + (void)avl_delete( &mi->mi_conntree, ( caddr_t )mc, + meta_back_conn_cmp ); meta_back_conn_free( mc ); } ldap_pvt_thread_mutex_unlock( &mi->mi_conn_mutex );