diff --git a/userspace/engine/rule_loader_compiler.cpp b/userspace/engine/rule_loader_compiler.cpp index 431e9538..d6466d75 100644 --- a/userspace/engine/rule_loader_compiler.cpp +++ b/userspace/engine/rule_loader_compiler.cpp @@ -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 sfPtr(compiler.compile()); } catch (const sinsp_exception& e) {