Skip to content

Commit

Permalink
fix(sinsp): don't free scap_threadinfo/scap_fdinfo in proc callback
Browse files Browse the repository at this point in the history
They're not ours to free (they may be stack allocated, for example)

Signed-off-by: Grzegorz Nosek <[email protected]>
  • Loading branch information
gnosek authored and poiana committed Oct 30, 2023
1 parent 7566a71 commit 0a7b8ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,6 @@ void sinsp::on_new_entry_from_proc(void* context,

if(m_suppress.check_suppressed_comm(tid, tinfo->comm))
{
free(tinfo);
scap_fd_free_table(&fdinfo);
return;
}

Expand Down

0 comments on commit 0a7b8ef

Please sign in to comment.