Skip to content
Snippets Groups Projects
Commit 058be29b authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Fix - slapcat doesn't set op->o_hdr for tmpmemctx

parent d10b3d4f
No related branches found
No related tags found
No related merge requests found
......@@ -204,10 +204,17 @@ int mdb_entry_return(
)
{
if ( e->e_private ) {
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->e_attrs, op->o_tmpmemctx );
op->o_tmpfree( e, op->o_tmpmemctx );
if ( slapMode & SLAP_TOOL_MODE ) {
ch_free( e->e_nname.bv_val );
ch_free( e->e_name.bv_val );
ch_free( e->e_attrs );
ch_free( e );
} else {
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->e_attrs, op->o_tmpmemctx );
op->o_tmpfree( e, op->o_tmpmemctx );
}
} else {
entry_free( e );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment