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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Generated string was dropped, and did generate a memory leak,
because of the missing break.

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

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;
 		}
-- 
2.43.0





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux