]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: arg: add a free_args() function to free an args array
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 08:13:00 +0000 (10:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commitab213a5b6fa378b7f132132c03187ac83db75cc1
tree6b40887f658b0d78f8827cc1dddf1ae167728f8f
parenta87e782a2dfb0837e863867a5e3361143eaede9b
MINOR: arg: add a free_args() function to free an args array

make_arg_list() can create an array of arguments, some of which remain
to be resolved, but all users had to deal with their own roll back on
error. Let's add a free_args() function to release all the array's
elements and let the caller deal with the array itself (sometimes it's
allocated in the stack).
include/haproxy/arg.h
src/arg.c