]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: arg: Use chunk_destroy() to release string arguments
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Aug 2020 09:45:18 +0000 (11:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Aug 2020 12:27:54 +0000 (14:27 +0200)
commit6ad7df423b71470babef545506a1af569074fc59
treef92ef8c8f30ced82a71c94d6fa7828d356b036c7
parentfd2e90608439cabcf12899f4e8dcc2d4c51c10c3
MINOR: arg: Use chunk_destroy() to release string arguments

This way, all fields of the buffer structure are reset when a string argument
(ARGT_STR) is released.  It is also a good way to explicitly specify this kind
of argument is a chunk. So .data and .size fields must be set.

This patch may be backported to ease backports.
src/acl.c
src/hlua.c
src/http_htx.c
src/map.c
src/payload.c
src/proto_tcp.c
src/sample.c