mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 14:23:34 -05:00
Revert "ITS#10448 slapo-syncprov: plug leak in syncprov_parseCtrl"
This reverts commit e9451873ae.
Breaks all replication
This commit is contained in:
parent
e9451873ae
commit
6603ce17d9
1 changed files with 0 additions and 27 deletions
|
|
@ -4250,26 +4250,6 @@ syncprov_db_destroy(
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
syncprov_ctrl_cleanup( Operation *op, SlapReply *rs )
|
||||
{
|
||||
if ( op->o_controls[slap_cids.sc_LDAPsync] ) {
|
||||
sync_control *sr = op->o_controls[slap_cids.sc_LDAPsync];
|
||||
op->o_controls[slap_cids.sc_LDAPsync] = NULL;
|
||||
if ( sr->sr_state.ctxcsn ) {
|
||||
ber_bvarray_free_x( sr->sr_state.ctxcsn, op->o_tmpmemctx );
|
||||
}
|
||||
if ( sr->sr_state.sids ) {
|
||||
op->o_tmpfree( sr->sr_state.sids, op->o_tmpmemctx );
|
||||
}
|
||||
if ( sr->sr_state.octet_str.bv_val ) {
|
||||
op->o_tmpfree( sr->sr_state.octet_str.bv_val, op->o_tmpmemctx );
|
||||
}
|
||||
op->o_tmpfree( sr, op->o_tmpmemctx );
|
||||
}
|
||||
return slap_freeself_cb( op, rs );
|
||||
}
|
||||
|
||||
static int syncprov_parseCtrl (
|
||||
Operation *op,
|
||||
SlapReply *rs,
|
||||
|
|
@ -4377,13 +4357,6 @@ static int syncprov_parseCtrl (
|
|||
|
||||
op->o_sync_mode |= mode; /* o_sync_mode shares o_sync */
|
||||
|
||||
{
|
||||
slap_callback *cb = op->o_tmpcalloc( 1, sizeof(slap_callback), op->o_tmpmemctx );
|
||||
cb->sc_cleanup = syncprov_ctrl_cleanup;
|
||||
cb->sc_next = op->o_callback;
|
||||
op->o_callback = cb;
|
||||
}
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue