BUG/MINOR: lua-thread: close all states on deinit
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Dec 2020 10:48:12 +0000 (11:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Dec 2020 11:00:11 +0000 (12:00 +0100)
commit186f37674c12d85028af87661938d57644c075b4
tree15758a8bd6f3106dae916563ecbc1eb347c0f92a
parentaafc777854e55ec0956b0c64484025ca7293dc1c
BUG/MINOR: lua-thread: close all states on deinit

It seems to me that lua_close() must be called on all states at deinit
time, not just the first two ones. This is likely a remnant of commit
59f11be43 ("MEDIUM: lua-thread: Add the lua-load-per-thread directive").
There should likely be some memory leak reports when using Lua without
this fix, though none were observed for now.

No backport is needed as this was merged into 2.4-dev.
src/hlua.c