]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pattern: Avoid memory leak on out-of-memory condition
authorAndreas Seltenreich <andreas.seltenreich@credativ.de>
Thu, 3 Mar 2016 19:20:23 +0000 (20:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Mar 2016 06:47:25 +0000 (07:47 +0100)
commite6e22e8e909dc10be3ebeb4d18179dd8970d119e
tree70df24ab56897ac0f53d86d2dc0b547ef3347f35
parent93f91c3082b9eb28b3ca60c44f158ca471b6003f
BUG/MINOR: pattern: Avoid memory leak on out-of-memory condition

pattern_new_expr() failed to free the allocated list element when an
out-of-memory error occurs during initialization of the element.  As
this only happens when loading the configuration file or evaluating
commands via the CLI, it is unlikely for this leak to be relevant
unless the user makes automated, heavy use of the CLI.

Found in HAProxy 1.5.14.
src/pattern.c