From: Quanah Gibson-Mount Date: Mon, 29 Sep 2008 22:33:18 +0000 (+0000) Subject: make sure o_csn is freed X-Git-Tag: OPENLDAP_REL_ENG_2_4_12~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=273ba69544bc8a224432df2c8c00b2f0a86bfa37;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;