o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_MALLOC; could be related to ITS#6660, although unlikely)

This commit is contained in:
Pierangelo Masarati 2010-09-28 19:57:02 +00:00
parent 2b1b37cd4b
commit aecd2f33d6

View file

@ -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;