mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-08 01:59:33 +00:00
fix(userspace/engine): fix memory leak
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
This commit is contained in:
@@ -490,7 +490,7 @@ void rule_loader::compiler::compile_rule_infos(
|
||||
sinsp_filter_compiler compiler(cfg.sources.at(r.source)->filter_factory, rule.condition.get());
|
||||
try
|
||||
{
|
||||
compiler.compile();
|
||||
std::shared_ptr<sinsp_filter> sfPtr(compiler.compile());
|
||||
}
|
||||
catch (const sinsp_exception& e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user