CLEANUP: hlua: use hlua_pushref() instead of lua_rawgeti()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 20 Mar 2023 16:22:37 +0000 (17:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
commit4fdf8b58f22be259e2c754fbd6846ede30524e62
tree293e6d7b122d36e0a87b1552ce3165dd27826e2a
parent73d1a98d525d294a14d6c3bd28890437800e84d3
CLEANUP: hlua: use hlua_pushref() instead of lua_rawgeti()

Using hlua_pushref() everywhere temporary lua objects are involved.
(ie: hlua_checkfunction(), hlua_checktable...)
Those references are expected to be cleared using hlua_unref() when
they are no longer used.
src/hlua.c