Originally, overlays were not supposed to take effect in tool mode.
Apparently that's no longer the case...
)
{
if ( e->e_private ) {
- if ( slapMode & SLAP_TOOL_MODE ) {
- ch_free( e->e_nname.bv_val );
- ch_free( e->e_name.bv_val );
- ch_free( e );
- } else {
+ if ( op->o_hdr ) {
op->o_tmpfree( e->e_nname.bv_val, op->o_tmpmemctx );
op->o_tmpfree( e->e_name.bv_val, op->o_tmpmemctx );
op->o_tmpfree( e, op->o_tmpmemctx );
+ } else {
+ ch_free( e->e_nname.bv_val );
+ ch_free( e->e_name.bv_val );
+ ch_free( e );
}
} else {
entry_free( e );