make sure o_csn is freed

This commit is contained in:
Pierangelo Masarati 2008-09-27 11:06:31 +00:00
parent 7cc2acd111
commit 13eb62e42f

View File

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