]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mailers: Fix a memory leak when email alerts are released
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Oct 2017 13:38:19 +0000 (15:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 10:36:12 +0000 (11:36 +0100)
commitde1a75b86954ede54cdc82cc913ef6b17e2db6f5
tree09311a2ef0e420bc5f8c4a545174bb85b47d2002
parent67957bd59e3ccd7be1174b50a5bf402bd676ecb0
BUG/MINOR: mailers: Fix a memory leak when email alerts are released

An email alert contains a list of tcpcheck_rule. Each one is dynamically
allocated, just like its internal members. So, when an email alerts is freed, we
must be sure to properly free each tcpcheck_rule too.

This patch must be backported in 1.7 and 1.6.
src/checks.c