From 8ff6f3c834b3b7e2e9d242e2bc7306b740d5a685 Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Tue, 22 Jul 2025 11:29:02 +0200 Subject: [PATCH] fix(userspace/falco): smart pointer for sinsp_dumper Signed-off-by: Leonardo Grasso --- userspace/falco/app/actions/process_events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/falco/app/actions/process_events.cpp b/userspace/falco/app/actions/process_events.cpp index db41064d..f8737f6e 100644 --- a/userspace/falco/app/actions/process_events.cpp +++ b/userspace/falco/app/actions/process_events.cpp @@ -23,6 +23,7 @@ limitations under the License. #include #include #include +#include #include "falco_utils.h" @@ -145,7 +146,7 @@ static falco::app::run_result do_inspect( } // init dumper for captures - sinsp_dumper* dumper = new sinsp_dumper(); + auto dumper = std::make_unique(); uint64_t dump_started_ts = 0; uint64_t dump_deadline_ts = 0;