Commit df05038f authored by Howard Chu's avatar Howard Chu
Browse files

Actually free mapped attrval

parent 68c5f6fa
......@@ -100,6 +100,8 @@ ldap_back_compare(
ldap_back_dn_massage( &dc, &op->orc_ava->aa_value, &mapped_val );
if (mapped_val.bv_val == NULL || mapped_val.bv_val[0] == '\0') {
mapped_val = op->orc_ava->aa_value;
} else {
freeval = 1;
}
}
}
......@@ -110,6 +112,9 @@ ldap_back_compare(
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
free( mdn.bv_val );
}
if ( freeval ) {
free( mapped_val.bv_val );
}
return( ldap_back_op_result( lc, op, rs, msgid, 1 ) );
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment