From: Hallvard Furuseth Date: Sun, 2 Apr 2006 23:47:13 +0000 (+0000) Subject: Initialize and destroy lc_lai.lai_mutex X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2f79aa42edc03706e7898b02a9ffb4193ddfe36;p=openldap Initialize and destroy lc_lai.lai_mutex --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index a2051d912c..6c04162075 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -1284,6 +1284,7 @@ ldap_chain_db_init( return 1; } memset( lc, 0, sizeof( ldap_chain_t ) ); + ldap_pvt_thread_mutex_init( &lc->lc_lai.lai_mutex ); on->on_bi.bi_private = (void *)lc; @@ -1533,6 +1534,7 @@ ldap_chain_db_destroy( if ( lc ) { avl_free( lc->lc_lai.lai_tree, NULL ); + ldap_pvt_thread_mutex_destroy( &lc->lc_lai.lai_mutex ); ch_free( lc ); } diff --git a/servers/slapd/back-ldap/distproc.c b/servers/slapd/back-ldap/distproc.c index 6124a97514..5710a2198b 100644 --- a/servers/slapd/back-ldap/distproc.c +++ b/servers/slapd/back-ldap/distproc.c @@ -583,6 +583,7 @@ ldap_distproc_db_init( return 1; } memset( lc, 0, sizeof( ldap_distproc_t ) ); + ldap_pvt_thread_mutex_init( &lc->lc_lai.lai_mutex ); on->on_bi.bi_private = (void *)lc; @@ -781,6 +782,7 @@ ldap_distproc_db_destroy( if ( lc ) { avl_free( lc->lc_lai.lai_tree, NULL ); + ldap_pvt_thread_mutex_destroy( &lc->lc_lai.lai_mutex ); ch_free( lc ); }