aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r--src/lua/lua_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index ac3d3074b..dd79d9eab 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -200,6 +200,7 @@ init_lua (struct config_file *cfg)
(void)luaopen_classifier (L);
(void)luaopen_statfile (L);
cfg->lua_state = L;
+ memory_pool_add_destructor (cfg->cfg_pool, (pool_destruct_func)lua_close, L);
}
}