From e1dfe6e911d573a2584883bd8028a22c3fd6cebd Mon Sep 17 00:00:00 2001 From: Rein Tollevik Date: Mon, 15 Nov 2010 14:15:46 +0000 Subject: [PATCH] ITS#6707: Free the presentlist (if any) before connecting. --- servers/slapd/syncrepl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 5ffc6f0f84..a164e56d56 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1424,6 +1424,11 @@ do_syncrepl( si->si_refreshDelete = 0; si->si_refreshPresent = 0; + if ( si->si_presentlist ) { + avl_free( si->si_presentlist, ch_free ); + si->si_presentlist = NULL; + } + /* use main DB when retrieving contextCSN */ op->o_bd = si->si_wbe; op->o_dn = op->o_bd->be_rootdn; -- 2.39.5