>From 82a8d3e1f66454aabb640f165f4b4f4346cd5bf1 Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> 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@xxxxxxxxxxx> --- Based on top of: https://lore.kernel.org/all/20211014150204.2485499-1-tz.stoyanov@xxxxxxxxx/ 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