* [PATCH] trace-cmd dump: Free frac field of cpus_data
@ 2021-11-09 16:17 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2021-11-09 16:17 UTC (permalink / raw)
  To: Linux Trace Devel; +Cc: Tzvetomir Stoyanov
From 82a8d3e1f66454aabb640f165f4b4f4346cd5bf1 Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Date: Tue, 9 Nov 2021 11:09:59 -0500
Subject: [PATCH] trace-cmd dump: Free frac field of cpus_data
Fix the memory leak of the frac field.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
Based on top of:
  https://lore.kernel.org/all/20211014150204.2485499-1-tz.stoyanov@gmail.com/
 tracecmd/trace-dump.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/tracecmd/trace-dump.c b/tracecmd/trace-dump.c
index ed97bd3f..b19ce89a 100644
--- a/tracecmd/trace-dump.c
+++ b/tracecmd/trace-dump.c
@@ -477,6 +477,7 @@ out:
 		free(cpus_data[j].times);
 		free(cpus_data[j].offsets);
 		free(cpus_data[j].scalings);
+		free(cpus_data[j].frac);
 	}
 	free(cpus_data);
 }
-- 
2.31.1
^ permalink raw reply related	[flat|nested] only message in thread
only message in thread, other threads:[~2021-11-09 16:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 16:17 [PATCH] trace-cmd dump: Free frac field of cpus_data Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).