CLEANUP: hlua: use free_args() to release args arrays
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 08:26:56 +0000 (10:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commitee0d7279897d94894f2e149bf02d7ea18465362c
tree1417da33aa9f7c94d192e12a3bdc8735850d5732
parentc15221b80c965882edf4786f95fd72c2dd99739a
CLEANUP: hlua: use free_args() to release args arrays

Argument arrays used in hlua_lua2arg_check() as well as in the functions
used to call sample fetches and converters were manually released, let's
use the cleaner and more reliable free_args() instead. The prototype of
hlua_lua2arg_check() was amended to mention that the function relies on
the final ARGT_STOP, which is already the case, and the pointless test
for this was removed.
src/hlua.c