mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-02 23:26:24 +00:00
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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user