From 13eb62e42f3ac2de458c2d034a5eeae9ee0791a1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 27 Sep 2008 11:06:31 +0000 Subject: [PATCH] make sure o_csn is freed --- servers/slapd/operation.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/operation.c b/servers/slapd/operation.c index b3ec0372bc..cc0354b303 100644 --- a/servers/slapd/operation.c +++ b/servers/slapd/operation.c @@ -111,6 +111,11 @@ slap_op_free( Operation *op, void *ctx ) } #endif /* defined( LDAP_SLAPI ) */ + if ( !BER_BVISNULL( &op->o_csn ) ) { + op->o_tmpfree( op->o_csn.bv_val, op->o_tmpmemctx ); + BER_BVZERO( &op->o_csn ); + } + opbuf = (OperationBuffer *) op; memset( opbuf, 0, sizeof(*opbuf) ); op->o_hdr = &opbuf->ob_hdr; -- 2.39.5