From b2f79aa42edc03706e7898b02a9ffb4193ddfe36 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 2 Apr 2006 23:47:13 +0000 Subject: [PATCH] Initialize and destroy lc_lai.lai_mutex --- servers/slapd/back-ldap/chain.c | 2 ++ servers/slapd/back-ldap/distproc.c | 2 ++ 2 files changed, 4 insertions(+) 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 ); } -- 2.39.5