mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-22 16:16:11 +00:00
fix(userspace/falco): smart pointer for sinsp_dumper
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
1bebb21561
commit
8ff6f3c834
@ -23,6 +23,7 @@ limitations under the License.
|
||||
#include <fcntl.h>
|
||||
#include <atomic>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
|
||||
#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<sinsp_dumper>();
|
||||
uint64_t dump_started_ts = 0;
|
||||
uint64_t dump_deadline_ts = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user