]> git.sur5r.net Git - openldap/commitdiff
o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_...
authorPierangelo Masarati <ando@openldap.org>
Tue, 28 Sep 2010 19:57:02 +0000 (19:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 28 Sep 2010 19:57:02 +0000 (19:57 +0000)
servers/slapd/operation.c

index f0dc1b7be5b742508ff262d31c70983d85545a17..a79b68e8ebff8cfcaeae00c0b23bb879b85be64b 100644 (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;