diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 33f488690a..fc0102b1a9 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -524,6 +524,12 @@ ldap_back_cf_gen( ConfigArgs *c ) ldap_free_urllist( li->lud ); li->lud = NULL; } + + /* better cleanup the cached connections... */ + /* NOTE: don't worry about locking: if we got here, + * other threads are suspended. */ + avl_free( li->conntree, ldap_back_conn_free ); + break; case LDAP_BACK_CFG_TLS: