]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acl: Fix memory leaks when an ACL expression is parsed
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Sep 2019 07:50:15 +0000 (09:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Sep 2019 08:08:44 +0000 (10:08 +0200)
commit361935aa1e327d2249453eab0b8f0300683f47b2
tree9eca67caaeff712714039366d531f471cba74d40
parent3e395632bf0892696c5a94944fb27f00908c228e
BUG/MINOR: acl: Fix memory leaks when an ACL expression is parsed

This only happens during the configuration parsing. First leak is the string
representing the last converter parsed, if any. The second one is on the error
path, when the allocation of the ACL expression failed. In this case, the sample
was not released.

This patch fixes the issue #256. It must be backported to all stable versions.
src/acl.c