From 84fde1bb02d74f53a42bebe5ffa1c4846d3c8e18 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 29 Jan 2015 05:15:33 +0000 Subject: [PATCH] ITS#8038 free presentlist at end of refresh --- servers/slapd/syncrepl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 9147f35f0c..4e42a4754b 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 ); -- 2.39.5