From: Pierangelo Masarati Date: Tue, 28 Sep 2010 19:57:02 +0000 (+0000) Subject: o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_... X-Git-Tag: MIGRATION_CVS2GIT~472 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aecd2f33d6c7344f4066d7a9d9186fb8fe7b50d9;p=openldap o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_MALLOC; could be related to ITS#6660, although unlikely) --- diff --git a/servers/slapd/operation.c b/servers/slapd/operation.c index f0dc1b7be5..a79b68e8eb 100644 --- a/servers/slapd/operation.c +++ b/servers/slapd/operation.c @@ -116,6 +116,11 @@ slap_op_free( Operation *op, void *ctx ) BER_BVZERO( &op->o_csn ); } + if ( op->o_pagedresults_state != NULL ) { + op->o_tmpfree( op->o_pagedresults_state, op->o_tmpmemctx ); + op->o_pagedresults_state = NULL; + } + opbuf = (OperationBuffer *) op; memset( opbuf, 0, sizeof(*opbuf) ); op->o_hdr = &opbuf->ob_hdr;