mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
Initialize and destroy lc_lai.lai_mutex
This commit is contained in:
parent
c63d1f04f8
commit
b2f79aa42e
2 changed files with 4 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue