summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-13 19:37:29 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-13 19:37:29 +0400
commitd4b35de4315753629ac5b107968e6194eac85d24 (patch)
tree586556d88d897b3de243446b9daf8292bf74e2f8 /src/lua/lua_common.c
parentd2e2f5ec1a54c6e7c2348d204b3fc3a09849003d (diff)
downloadrspamd-d4b35de4315753629ac5b107968e6194eac85d24.tar.gz
rspamd-d4b35de4315753629ac5b107968e6194eac85d24.zip
* Add lua config for most common rules
* Reset lua state while reloading
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);
}
}