]> git.sur5r.net Git - openldap/commitdiff
Free IDL_CACHE locks
authorHoward Chu <hyc@openldap.org>
Wed, 16 Apr 2003 01:04:00 +0000 (01:04 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 16 Apr 2003 01:04:00 +0000 (01:04 +0000)
servers/slapd/back-bdb/init.c

index 412a132da2f6d666aa19dfb79f925c62994aeabc..55e3361ac0b6989d7bab62e300c6737bc2cc08d6 100644 (file)
@@ -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;