BUG/MINOR: config: Fix memory leak on config parse listen
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 18 Sep 2020 13:59:39 +0000 (15:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2020 14:17:09 +0000 (16:17 +0200)
commit36b536652f23c8b9b430d7a7cbb42a696d06a929
tree5b99f56eacdd1405537cc09d9a476eb15a20a095
parent1aab911017e0634c109325eff73d5d49325babed
BUG/MINOR: config: Fix memory leak on config parse listen

This memory leak happens if there is two or more defaults section. When
the default proxy is reinitialized, the structure member containing the
config filename must be freed.

Fix github issue #851.
Should be backported as far as 1.6.
src/cfgparse-listen.c