X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fsets.c;h=82c1831c4a645347a9e54ba4489143d81906b973;hb=5747896ba081ff998fd97863de26d2f4af59bbd2;hp=50a4d0d56ef5909eb3627fecbe98be586427a743;hpb=a9c4b54f1ba6fa797aafce098a1fd768bdbc410f;p=openldap diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index 50a4d0d56e..82c1831c4a 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -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 ); }