From 270dfe4db819e8841e09799e72a2ab2b0fd1616e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Jan 2007 22:13:54 +0000 Subject: [PATCH] free entry in a cleaner manner (ITS#4801?) --- servers/slapd/overlays/dynlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index cf461b6bc0..5c0a1d73a3 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -298,6 +298,8 @@ dynlist_sc_update( Operation *op, SlapReply *rs ) done:; if ( rs->sr_flags & REP_ENTRY_MUSTBEFREED ) { entry_free( rs->sr_entry ); + rs->sr_entry = NULL; + rs->sr_flags ^= REP_ENTRY_MUSTBEFREED; } return 0; -- 2.39.5