diff options
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 803daa2f9..e85f82d1a 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -209,7 +209,6 @@ rspamd_lua_init () L = luaL_newstate (); luaL_openlibs (L); - luaopen_logger (L); luaopen_mempool (L); luaopen_config (L); @@ -425,7 +424,7 @@ rspamd_lua_add_preload (lua_State *L, const gchar *name, lua_CFunction func) lua_gettable (L, -2); lua_pushcfunction (L, func); lua_setfield (L, -2, name); - lua_pop (L, 1); + lua_pop (L, 2); /* preload key + global package */ } |