BUG/MINOR: hlua: fix reference leak in hlua_post_init_state()

hlua init function references were not released during
hlua_post_init_state().

Hopefully, this function is only used during startup so the resulting
leak is not a big deal.
Since each init lua function runs precisely once, it is safe to release
the ref as soon as the function is restored on the stack.

This could be backported to every stable versions.
Please note that this commit depends on "MINOR: hlua: add simple hlua reference handling API"

(cherry picked from commit 16d047b615408e05e35f0a655962ff755d6924a4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9bbc2d96641e15665e9a369560239ac8d07bd319)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ce00280a29363afc474ad36203b6e94c21902cfc)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a93af216e8869c185474476463f86865f8a4f8ab)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed