From: Howard Chu Date: Wed, 16 Apr 2003 01:04:00 +0000 (+0000) Subject: Free IDL_CACHE locks X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~353 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca9bb44089145bdb7435135714590d48f4a6eabd;p=openldap Free IDL_CACHE locks --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 412a132da2..55e3361ac0 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -528,6 +528,12 @@ bdb_db_destroy( BackendDB *be ) ldap_pvt_thread_rdwr_destroy ( &bdb->bi_cache.c_rwlock ); ldap_pvt_thread_mutex_destroy( &bdb->bi_cache.lru_mutex ); ldap_pvt_thread_mutex_destroy( &bdb->bi_lastid_mutex ); +#ifdef SLAP_IDL_CACHE + if ( bdb->bi_idl_cache_max_size ) { + ldap_pvt_thread_rdwr_destroy( &bdb->bi_idl_tree_rwlock ); + ldap_pvt_thread_mutex_destroy( &bdb->bi_idl_tree_lrulock ); + } +#endif ch_free( bdb ); be->be_private = NULL;