]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua_fcn: add Patref:giveup()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 25 Nov 2024 14:29:40 +0000 (15:29 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 29 Nov 2024 06:23:26 +0000 (07:23 +0100)
commit3bcc653ce1cd11e24c23f1a7dc6e57c0fc224410
treee0f16b63470913b5ca16b3e6a538ecb5dccadf4d
parentfda5ca3472a91afb7169339700936dc982bd21f9
MINOR: hlua_fcn: add Patref:giveup()

If Patref:commit() was used and the new version (generation) isn't going
to be committed, calling Patref:giveup() will allow allocated resources
to be freed and reused. It is a good habit to call this if commit()
isn't called after a prepare().
doc/lua-api/index.rst
src/hlua_fcn.c