]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse/proxy: Fix some leaks during proxy section parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 14:28:30 +0000 (16:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 19:33:39 +0000 (21:33 +0200)
commit2e848a9b75df0d1e7f3b4423fad6d6a478c4039c
tree2cc3e751a69b9754a9ede8eea0817dcc0ab95ec4
parent3a9a12bb2afee04fe416c8bdfacd4af7d1d95a3a
BUG/MINOR: cfgparse/proxy: Fix some leaks during proxy section parsing

Allocated variables are now released when an error occurred during
use_backend, use-server, force/ignore-parsing, stick-table, stick and stats
directives parsing. For some of these directives, allocation errors have
been added.

This patch may be backported to all stable version but it only fixes leaks
or allocation errors during configuration parsing. Thus, it is not
mandatory. It should fix issue #1119.
src/cfgparse-listen.c