From: Pierangelo Masarati Date: Wed, 29 Apr 2009 13:03:50 +0000 (+0000) Subject: force entry release as appropriate (ITS#6081) X-Git-Tag: ACLCHECK_0~589 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd609f32993ae5c5edfe02d38d9d0ccc5a2902fe;p=openldap force entry release as appropriate (ITS#6081) --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 3e6ba4952a..09675bb004 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -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 */