From: Pierangelo Masarati Date: Thu, 11 Jan 2007 22:13:54 +0000 (+0000) Subject: free entry in a cleaner manner (ITS#4801?) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~193 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=270dfe4db819e8841e09799e72a2ab2b0fd1616e;p=openldap free entry in a cleaner manner (ITS#4801?) --- 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;