From: Vsevolod Stakhov Date: Fri, 24 May 2019 13:52:01 +0000 (+0100) Subject: [Minor] Remove string from top to avoid lua stack issues X-Git-Tag: 2.0~857 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4626766ee1cbe74b33f3194d8dda97880e8c5c2e;p=thirdparty%2Frspamd.git [Minor] Remove string from top to avoid lua stack issues --- diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index c2940c9abc..f7793748ae 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -1693,6 +1693,7 @@ rspamd_lua_get_traceback_string (lua_State *L, luaL_Buffer *buf) const gchar *msg = lua_tostring (L, -1); luaL_addstring (buf, msg); + lua_pop (L, 1); /* Error string */ luaL_addstring (buf, "; trace:"); rspamd_lua_traceback_string (L, buf); }