mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
fix ITS#1704
This commit is contained in:
parent
ab6ad34692
commit
e847d6fdf2
@ -270,7 +270,7 @@ meta_dncache_delete_entry(
|
||||
ldap_pvt_thread_mutex_lock( &cache->mutex );
|
||||
entry = avl_delete( &cache->tree, ( caddr_t )&tmp_entry,
|
||||
meta_dncache_cmp );
|
||||
ldap_pvt_thread_mutex_lock( &cache->mutex );
|
||||
ldap_pvt_thread_mutex_unlock( &cache->mutex );
|
||||
|
||||
if ( entry != NULL ) {
|
||||
meta_dncache_free( ( void * )entry );
|
||||
|
@ -230,9 +230,6 @@ meta_back_db_destroy(
|
||||
( AVL_FREE )conn_free );
|
||||
}
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &li->cache.mutex );
|
||||
ldap_pvt_thread_mutex_destroy( &li->cache.mutex );
|
||||
|
||||
/*
|
||||
* Destroy the per-target stuff (assuming there's at
|
||||
* least one ...)
|
||||
@ -253,7 +250,8 @@ meta_back_db_destroy(
|
||||
ldap_pvt_thread_mutex_unlock( &li->cache.mutex );
|
||||
ldap_pvt_thread_mutex_destroy( &li->cache.mutex );
|
||||
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
|
||||
ldap_pvt_thread_mutex_destroy( &li->conn_mutex );
|
||||
}
|
||||
|
||||
free( be->be_private );
|
||||
|
Loading…
Reference in New Issue
Block a user