BUG: fix double free in peers config error path
If the local host is not found as a peer in a "peers" section, we have a
double free, and possibly a use-after-free because the peers section is
freed since it's aliased as the table's name.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 4fed92e..6fa549a 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -5931,7 +5931,6 @@
else if (!curpeers->peers_fe) {
Alert("Proxy '%s': unable to find local peer '%s' in peers section '%s'.\n",
curproxy->id, localpeer, curpeers->id);
- free((void *)curproxy->table.peers.name);
curproxy->table.peers.p = NULL;
cfgerr++;
}