mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 22:50:51 -05:00
Fix - slapcat doesn't set op->o_hdr for tmpmemctx
This commit is contained in:
parent
8623c98726
commit
16cbeb5e65
1 changed files with 11 additions and 4 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue