From aa494bd8c0906bfd7652a4d4ee68b51a08ff027c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 20 Apr 2009 14:54:18 +0000 Subject: [PATCH] only free entries dup'ed by rwm_entry_get_rw() (ITS#6058) --- servers/slapd/overlays/rwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5