Skip to content

Commit

Permalink
fix(userspace/engine): fix memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo authored and poiana committed Oct 17, 2023
1 parent fec8a82 commit b7cef5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/engine/rule_loader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b7cef5b

Please sign in to comment.