vei->regex = ch_calloc( 1, sizeof(regex_t) );
if ( regcomp( vei->regex, vei->dn.bv_val, REG_EXTENDED ) ) {
ch_free( vei->regex );
+ ch_free( vei->dn.bv_val );
return LDAP_CONSTRAINT_VIOLATION;
}
if ( ca->reply.err != LDAP_SUCCESS ) {
assert( LDAP_SLIST_EMPTY(&vei->attributes) );
+ ch_free( vei->dn.bv_val );
ch_free( vei );
return LDAP_SUCCESS;
}
variantEntry_info *vei = vai->variant;
if ( ca->reply.err != LDAP_SUCCESS ) {
+ ch_free( vai->dn.bv_val );
ch_free( vai );
return LDAP_SUCCESS;
}
ch_free( vai );
}
ber_memfree( vei->dn.bv_val );
+ regfree( vei->regex );
+ ch_free( vei->regex );
ch_free( vei );
}
ch_free( ov );