force entry release as appropriate (ITS#6081)

This commit is contained in:
Pierangelo Masarati 2009-04-29 13:03:50 +00:00
parent 85b47ab0e7
commit fd609f3299

View File

@ -879,6 +879,8 @@ rwm_entry_get_rw( Operation *op, struct berval *ndn,
op2.ors_attrs = slap_anlist_all_attributes;
rc = op2.o_bd->bd_info->bi_entry_get_rw( &op2, &mndn, oc, at, rw, ep );
if ( rc == LDAP_SUCCESS && *ep != NULL ) {
/* we assume be_entry_release() needs to be called */
rs.sr_flags = REP_ENTRY_MUSTRELEASE;
rs.sr_entry = *ep;
/* duplicate & release */