BUG: fix double free in peers config error path
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Feb 2012 16:06:13 +0000 (17:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Feb 2012 16:53:37 +0000 (17:53 +0100)
commit6f9b003c2b6f885c7bda8a4cdc88404b05e19b61
treea3e767e530e2f676dc377bbdb1540a3878a8e3f4
parentb7aeec6333d937ba452af2659db11230499113b4
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.
src/cfgparse.c