From: Pierangelo Masarati Date: Mon, 20 Apr 2009 14:54:18 +0000 (+0000) Subject: only free entries dup'ed by rwm_entry_get_rw() (ITS#6058) X-Git-Tag: ACLCHECK_0~604 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa494bd8c0906bfd7652a4d4ee68b51a08ff027c;p=openldap only free entries dup'ed by rwm_entry_get_rw() (ITS#6058) --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 93b1ae33b0..3e6ba4952a 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -823,7 +823,7 @@ rwm_entry_release_rw( Operation *op, Entry *e, int rw ) } /* just free entry if (probably) ours */ - if ( e->e_private == NULL ) { + if ( e->e_private == NULL && BER_BVISNULL( &e->e_bv ) ) { entry_free( e ); return LDAP_SUCCESS; }