Lines Matching defs:mods
86 ldap_mods_free( LDAPMod **mods, int freemods )
90 if ( mods == NULL )
93 for ( i = 0; mods[i] != NULL; i++ ) {
94 if ( mods[i]->mod_op & LDAP_MOD_BVALUES ) {
95 ber_bvecfree( mods[i]->mod_bvalues );
97 ldap_value_free( mods[i]->mod_values );
99 if (mods[i]->mod_type)
100 free(mods[i]->mod_type);
101 free( (char *) mods[i] );
105 free( (char *) mods );