From 8a5f87db80214a48b5a5e59b14bcf3a3801a1f0d Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Tue, 6 Aug 2024 14:23:18 +0000 Subject: [PATCH] fix: add table_entry default constructor Signed-off-by: Roberto Scolaro --- include/falcosecurity/table.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/falcosecurity/table.h b/include/falcosecurity/table.h index 0b96076..4d096ae 100644 --- a/include/falcosecurity/table.h +++ b/include/falcosecurity/table.h @@ -160,6 +160,8 @@ class table_entry { public: FALCOSECURITY_INLINE + table_entry() { m_entry = nullptr; }; + FALCOSECURITY_INLINE table_entry(table_entry&& o) { m_entry = o.m_entry; @@ -182,10 +184,7 @@ class table_entry FALCOSECURITY_INLINE table_entry& operator=(const table_entry&) = delete; FALCOSECURITY_INLINE - ~table_entry() - { - release_entry(); - } + ~table_entry() { release_entry(); } FALCOSECURITY_INLINE table_entry(_internal::ss_plugin_table_entry_t* e, @@ -203,7 +202,6 @@ class table_entry } private: - FALCOSECURITY_INLINE void release_entry() {