]> git.sur5r.net Git - openldap/commitdiff
remove from AVL before freeing...
authorPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 03:28:55 +0000 (03:28 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 03:28:55 +0000 (03:28 +0000)
servers/slapd/back-meta/conn.c

index e30bedb9b3dc374a7692a85799056e054fd39622..384e07b6f1f4b96eb8d1745f186fad567063dee8 100644 (file)
@@ -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 );