]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-rules: Fix memory releases on error path during action parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Jan 2020 13:50:55 +0000 (14:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit1337b328d95dd0d5b3577209919d096bcbc0bceb
tree98af5c3f6a3ecac69af4f546b5b9b322b9790c12
parent2eb539687eecb3b8b35120ffcfa9764165058e3d
BUG/MINOR: http-rules: Fix memory releases on error path during action parsing

When an error occurred during the parsing of an HTTP action, if some memory was
allocated, it should be released before exiting. Sometime a call to free() is
used on a sample expression instead of a call to release_sample_expr(). Other
time, it is just a string or a regex that should be released.

There is no real reason to backport this patch. Especially because this part was
highly modified recentely in 2.2-DEV.
src/http_act.c