From e1a8ed50131891516f5da6e22aae69a306147d38 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Jul 2012 21:50:13 +0400 Subject: * Add lua worker type and lua worker bindings. * Add lua utility library for basic utils. * Fixes lua_buffer code. Fix lua loading error. Added some other lua utility functions. --- src/lua/lua_classifier.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua/lua_classifier.c') diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c index edaf4e7a6..e929c6b50 100644 --- a/src/lua/lua_classifier.c +++ b/src/lua/lua_classifier.c @@ -371,6 +371,8 @@ luaopen_classifier (lua_State * L) lua_newclass (L, "rspamd{classifier}", classifierlib_m); luaL_openlib (L, "rspamd_classifier", null_reg, 0); + lua_pop (L, 1); /* remove metatable from stack */ + return 1; } @@ -380,6 +382,8 @@ luaopen_statfile (lua_State * L) lua_newclass (L, "rspamd{statfile}", statfilelib_m); luaL_openlib (L, "rspamd_statfile", null_reg, 0); + lua_pop (L, 1); /* remove metatable from stack */ + return 1; } -- cgit v1.2.3