]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: map: Avoid memory leak in out-of-memory condition.
authorAndreas Seltenreich <andreas.seltenreich@credativ.de>
Thu, 3 Mar 2016 19:32:23 +0000 (20:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2016 11:55:06 +0000 (12:55 +0100)
commit78f3595f4d31e3b1d662a5c023887ac8e3182585
tree1940630354aee9052c9d1fc54ead61dedf7efb9c
parentf0653192e31d3baa95ead5501b5cda467ab15b6d
CLEANUP: map: Avoid memory leak in out-of-memory condition.

This memory leak of about 100 bytes occurs only if there is an error
condidtion during evaluation of a "map" directive in the configuration
file.  This evaluation only happens once on startup because haproxy
does not have a mechanism for re-loading the configuration file during
run-time.  The startup will be aborted anyway due to error conditions
raised.

Nevertheless fix it to silence warnings of static code analysis tools
and be safe against future revisions of the code.

Found in haproxy 1.5.14.
src/map.c