]> git.sur5r.net Git - openldap/commitdiff
ITS#8038 free presentlist at end of refresh
authorHoward Chu <hyc@openldap.org>
Thu, 29 Jan 2015 05:15:33 +0000 (05:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 29 Jan 2015 05:15:33 +0000 (05:15 +0000)
servers/slapd/syncrepl.c

index 9147f35f0c3d717f9d6c1ff667257a0243bc5c68..4e42a4754bafebd072ab71dd1737a06778cd05c1 100644 (file)
@@ -1352,6 +1352,10 @@ do_syncrep2(
                                        {
                                                rc = syncrepl_updateCookie( si, op, &syncCookie);
                                        }
+                                       if ( si->si_presentlist ) {
+                                               avl_free( si->si_presentlist, ch_free );
+                                               si->si_presentlist = NULL;
+                                       }
                                } 
 
                                ldap_memfree( retoid );