Skip to content

Commit

Permalink
kernelshark: Fix tepdata_dump_entry() for event_id = KS_EVENT_OVERFLOW
Browse files Browse the repository at this point in the history
Generated string was dropped, and did generate a memory leak,
because of the missing break.

Signed-off-by: Benjamin ROBIN <[email protected]>
Signed-off-by: Yordan Karadzhov <[email protected]>
  • Loading branch information
benjarobin authored and yordan-karadzhov committed Jan 20, 2024
1 parent 9bfb819 commit 6d77de9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libkshark-tepdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ static char *tepdata_dump_entry(struct kshark_data_stream *stream,
case KS_EVENT_OVERFLOW:
entry_str = tepdata_dump_custom_entry(stream, entry,
missed_events_dump);
break;
default:
return NULL;
}
Expand Down

0 comments on commit 6d77de9

Please sign in to comment.