]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: The parse functions just return "struct pattern" without memory...
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 13 Dec 2013 14:36:59 +0000 (15:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:07 +0000 (18:06 +0100)
commitedc15c3a352f6136ab9ed106624fb43624df3cfb
treeb8d97884d2c198c7eab513ec6fc0e1a35433ebb4
parentb9b08460a2fa974f08114c0790d5379dd27a6c4c
MEDIUM: pattern: The parse functions just return "struct pattern" without memory allocation

The pattern parse functions put the parsed result in a "struct pattern"
without memory allocation. If the pattern must reference the input data
without changes, the pattern point to the parsed string. If buffers are
needed to store translated data, it use th trash buffer. The indexation
function that allocate the memory later if it is needed.
include/proto/pattern.h
include/types/acl.h
include/types/pattern.h
src/pattern.c
src/proto_http.c