]> git.sur5r.net Git - openldap/commitdiff
free entry in a cleaner manner (ITS#4801?)
authorPierangelo Masarati <ando@openldap.org>
Thu, 11 Jan 2007 22:13:54 +0000 (22:13 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 11 Jan 2007 22:13:54 +0000 (22:13 +0000)
servers/slapd/overlays/dynlist.c

index cf461b6bc0c8a166f0ee162b86520f8432747c58..5c0a1d73a327a0acfad29fdbdc4d218c0ff99917 100644 (file)
@@ -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;