From 20e46d84948be3127f6145d4f65437091bb87580 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 8 Sep 2017 21:36:05 +0100 Subject: [PATCH] ITS#8725 fix 75999a18c3c302bc2a71e9a01dfe63a62be8077c Not needed since callback uses tmpalloc --- servers/slapd/backover.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index 97a42770d3..bd727a0c06 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -727,16 +727,6 @@ cleanup: return rc; } -static int -over_op_func_cleanup( Operation *op, SlapReply *rs ) -{ - slap_callback *cb = op->o_callback; - if ( rs->sr_type == REP_RESULT && cb != NULL) { - op->o_callback = cb->sc_next; - op->o_tmpfree( cb, op->o_tmpmemctx ); - } -} - static int over_op_func( Operation *op, @@ -765,7 +755,7 @@ over_op_func( } if ( op->o_tag != LDAP_REQ_ABANDON && op->o_tag != LDAP_REQ_UNBIND ) { cb = (slap_callback *)op->o_tmpcalloc( 1, sizeof(slap_callback), op->o_tmpmemctx ); - cb->sc_cleanup = over_op_func_cleanup; + cb->sc_cleanup = NULL; cb->sc_response = over_back_response; cb->sc_writewait = NULL; cb->sc_next = op->o_callback; -- 2.39.2