Fix lua stack leak.

Need to pop the results of process_event so the stack doesn't grow
without bound.
This commit is contained in:
Mark Stemm 2016-09-23 15:34:32 -07:00
parent ae0ba57306
commit 28e9478dbb

View File

@ -113,6 +113,7 @@ falco_engine::rule_result *falco_engine::process_event(sinsp_evt *ev)
res->rule = p;
res->priority = lua_tostring(m_ls, -2);
res->format = lua_tostring(m_ls, -1);
lua_pop(m_ls, 3);
}
else
{