Fixes memory leaks in do_compare()

This commit is contained in:
Stig Venaas 2001-11-10 23:34:03 +00:00
parent 156c9b3177
commit d717a7fb9f

View file

@ -135,13 +135,13 @@ do_compare(
rc = slap_bv2ad( &desc, &ava.aa_desc, &text );
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
return rc;
goto cleanup;
}
rc = value_normalize( ava.aa_desc, SLAP_MR_EQUALITY, &value, &nvalue, &text );
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
return rc;
goto cleanup;
}
ava.aa_value = nvalue;