]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgcond: make the conditional term parser automatically allocate nodes
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 12:27:20 +0000 (14:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commit087b2d018ff436773b32afccfbbe565961b80f13
treeb9cdd23c18b7399151978d6505b838ec28327c06
parentca56d3d28bbd69b1201eda51fcf724fd3a44f62a
MINOR: cfgcond: make the conditional term parser automatically allocate nodes

It's not convenient to let the caller be responsible for node allocation,
better have the leaf function do that and implement the accompanying free
call. Now only a pointer is needed instead of a struct, and the leaf
function makes sure to leave the situation in a consistent way.
include/haproxy/cfgcond.h
src/cfgcond.c