summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 2258c03aa..217bfc761 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -967,6 +967,8 @@ luaopen_config (lua_State * L)
lua_newclass (L, "rspamd{config}", configlib_m);
luaL_openlib (L, "rspamd_config", null_reg, 0);
+ lua_pop (L, 1); /* remove metatable from stack */
+
return 1;
}
@@ -976,6 +978,8 @@ luaopen_radix (lua_State * L)
lua_newclass (L, "rspamd{radix}", radixlib_m);
luaL_openlib (L, "rspamd_radix", null_reg, 0);
+ lua_pop (L, 1); /* remove metatable from stack */
+
return 1;
}
@@ -985,6 +989,8 @@ luaopen_hash_table (lua_State * L)
lua_newclass (L, "rspamd{hash_table}", hashlib_m);
luaL_openlib (L, "rspamd_hash_table", null_reg, 0);
+ lua_pop (L, 1); /* remove metatable from stack */
+
return 1;
}
@@ -1003,5 +1009,7 @@ luaopen_trie (lua_State * L)
luaL_openlib (L, NULL, trielib_m, 0);
luaL_openlib(L, "rspamd_trie", trielib_f, 0);
+ lua_pop (L, 1); /* remove metatable from stack */
+
return 1;
}