mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
remove from AVL before freeing...
This commit is contained in:
parent
2132b8d57e
commit
1145840994
@ -1141,6 +1141,8 @@ meta_back_release_conn(
|
|||||||
assert( mc->mc_refcnt > 0 );
|
assert( mc->mc_refcnt > 0 );
|
||||||
mc->mc_refcnt--;
|
mc->mc_refcnt--;
|
||||||
if ( mc->mc_refcnt == 0 && mc->mc_tainted ) {
|
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 );
|
meta_back_conn_free( mc );
|
||||||
}
|
}
|
||||||
ldap_pvt_thread_mutex_unlock( &mi->mi_conn_mutex );
|
ldap_pvt_thread_mutex_unlock( &mi->mi_conn_mutex );
|
||||||
|
Loading…
Reference in New Issue
Block a user