From: Rein Tollevik Date: Mon, 15 Nov 2010 14:15:46 +0000 (+0000) Subject: ITS#6707: Free the presentlist (if any) before connecting. X-Git-Tag: MIGRATION_CVS2GIT~432 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1dfe6e911d573a2584883bd8028a22c3fd6cebd;p=openldap ITS#6707: Free the presentlist (if any) before connecting. --- 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;