Skip to content

Commit

Permalink
fix(libsinsp): properly cleanup sinsp_cycledumper
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 Jan 16, 2024
1 parent b2264b0 commit aa8b9d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userspace/libsinsp/sinsp_cycledumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ sinsp_cycledumper::~sinsp_cycledumper()
m_dumper->close();
m_dumper.reset();
}

if(m_past_names != nullptr)
{
delete[] m_past_names;
}
}

void sinsp_cycledumper::dump(sinsp_evt* evt)
Expand Down

0 comments on commit aa8b9d7

Please sign in to comment.