+void
+ldap_back_conn_free(
+ void *v_lc
+)
+{
+ struct ldapconn *lc = v_lc;
+ ldap_unbind( lc->ld );
+ if ( lc->bound_dn.bv_val ) {
+ ch_free( lc->bound_dn.bv_val );
+ }
+ if ( lc->cred.bv_val ) {
+ memset( lc->cred.bv_val, 0, lc->cred.bv_len );
+ ch_free( lc->cred.bv_val );
+ }
+ if ( lc->local_dn.bv_val ) {
+ ch_free( lc->local_dn.bv_val );
+ }
+ ldap_pvt_thread_mutex_destroy( &lc->lc_mutex );
+ ch_free( lc );
+}
+
+void
+mapping_free( void *v_mapping )
+{
+ struct ldapmapping *mapping = v_mapping;
+ ch_free( mapping->src.bv_val );
+ ch_free( mapping->dst.bv_val );
+ ch_free( mapping );