Skip to content

Commit

Permalink
fix: add table_entry default constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Aug 6, 2024
1 parent fbd8d62 commit 8a5f87d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/falcosecurity/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -203,7 +202,6 @@ class table_entry
}

private:

FALCOSECURITY_INLINE
void release_entry()
{
Expand Down

0 comments on commit 8a5f87d

Please sign in to comment.