diff mbox series

[29/34] kernelshark: Fix tepdata_dump_entry() for event_id = KS_EVENT_OVERFLOW

Message ID 20240114171723.14092-30-dev@benjarobin.fr (mailing list archive)
State Accepted
Commit 6d77de919bdee07b5b71487e63e274cc6f35325b
Headers show
Series Fix kernelshark issues introduced by the migration to Qt6 | expand

Commit Message

Benjamin ROBIN Jan. 14, 2024, 5:17 p.m. UTC
Generated string was dropped, and did generate a memory leak,
because of the missing break.

Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
---
 src/libkshark-tepdata.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/libkshark-tepdata.c b/src/libkshark-tepdata.c
index d15c155..a178de6 100644
--- a/src/libkshark-tepdata.c
+++ b/src/libkshark-tepdata.c
@@ -1047,6 +1047,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;
 		}