]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9121 plug entry leak
authorHoward Chu <hyc@openldap.org>
Tue, 25 Feb 2020 18:05:20 +0000 (18:05 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 25 Feb 2020 18:06:15 +0000 (18:06 +0000)
servers/slapd/overlays/dynlist.c

index 104fba3e4825af2d492f2057d0443f1b26ea744c..d523305d40ac8a49a6a28ea9b9fcbf1c1cbc11e7 100644 (file)
@@ -1029,6 +1029,8 @@ dynlist_search2resp( Operation *op, SlapReply *rs )
                                rs->sr_err = send_search_entry( op, &r );
                                if ( rs->sr_err != LDAP_SUCCESS )
                                        break;
+                       } else {
+                               rs_flush_entry( op, &r, NULL );
                        }
                }
                rs->sr_nentries = r.sr_nentries;