BUG/MINOR: Fix memory leaks cfg_parse_peers
authorEric Salama <esalama@haproxy.com>
Fri, 18 Sep 2020 09:55:17 +0000 (11:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2020 10:06:08 +0000 (12:06 +0200)
commit1aab911017e0634c109325eff73d5d49325babed
treebfab11e96e7f03e659f9be9c3a4d55d9fe7dcdb1
parentd2414a23c4c20b14c54ee9279e99fb96c81a29b1
BUG/MINOR: Fix memory leaks cfg_parse_peers

When memory allocation fails in cfg_parse_peers or when an error occurs
while parsing a stick-table, the temporary table and its id must be freed.

This fixes github issue #854. It should be backported as far as 2.0.
src/cfgparse.c