From fd609f32993ae5c5edfe02d38d9d0ccc5a2902fe Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 29 Apr 2009 13:03:50 +0000 Subject: [PATCH] force entry release as appropriate (ITS#6081) --- servers/slapd/overlays/rwm.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5