Merge pull request #123 from draios/fix-stack-leak

Fix lua stack leak.
This commit is contained in:
Mark Stemm 2016-09-23 16:02:01 -07:00 committed by GitHub
commit 08d204dde9

View File

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