From: Pierangelo Masarati Date: Sat, 27 Sep 2008 11:06:31 +0000 (+0000) Subject: make sure o_csn is freed X-Git-Tag: ACLCHECK_0~1312 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13eb62e42f3ac2de458c2d034a5eeae9ee0791a1;p=openldap make sure o_csn is freed --- 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;