mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
ITS#4780 plug leak
This commit is contained in:
parent
d6c4e2a833
commit
5747896ba0
1 changed files with 4 additions and 0 deletions
|
|
@ -265,10 +265,14 @@ slap_set_join(
|
|||
|
||||
done:;
|
||||
if ( !( op_flags & SLAP_SET_LREFARR ) && lset != NULL ) {
|
||||
if ( !( op_flags & SLAP_SET_LREFVAL ))
|
||||
cp->set_op->o_tmpfree( lset->bv_val, cp->set_op->o_tmpmemctx );
|
||||
cp->set_op->o_tmpfree( lset, cp->set_op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
if ( !( op_flags & SLAP_SET_RREFARR ) && rset != NULL ) {
|
||||
if ( !( op_flags & SLAP_SET_RREFVAL ))
|
||||
cp->set_op->o_tmpfree( rset->bv_val, cp->set_op->o_tmpmemctx );
|
||||
cp->set_op->o_tmpfree( rset, cp->set_op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue