]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp-rules: Fix memory releases on error path during action parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Jan 2020 14:05:56 +0000 (15:05 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitfdb6fbfa9a7b730939865b79bfbca3af278113b8
tree8c0861f61c2b190f03776722f3190aef4be26b0d
parentadfc6e8e1437edc162e85ecaf7c65042217fc327
BUG/MINOR: tcp-rules: Fix memory releases on error path during action parsing

When an error occurred during the parsing of a TCP action, if some memory was
allocated, it should be released before exiting.  Here, the fix consists for
replace a call to free() on a sample expression by a call to
release_sample_expr().

This patch may be backported to all supported versions.
src/tcp_rules.c