mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
make sure o_csn is freed
This commit is contained in:
parent
7cc2acd111
commit
13eb62e42f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user