diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-02-21 17:09:30 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-21 20:42:08 -0500 |
commit | 84de80460fa0bef25c4b75a2d12ba1ba043cc74f (patch) | |
tree | 23c81ecd6012f2e4083e0950d5dad678e9a5c130 | |
parent | 37770884230fd0bbe369782f2a8a676d695d59d2 (diff) |
trace-graph: Free last_record in cpu plot
When destroying a CPU plot, make sure the last record is freed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-plot-cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trace-plot-cpu.c b/trace-plot-cpu.c index 0e7f5e8..4d06aa6 100644 --- a/trace-plot-cpu.c +++ b/trace-plot-cpu.c | |||
@@ -449,6 +449,7 @@ static void cpu_plot_destroy(struct graph_info *ginfo, struct graph_plot *plot) | |||
449 | struct cpu_plot_info *cpu_info = plot->private; | 449 | struct cpu_plot_info *cpu_info = plot->private; |
450 | 450 | ||
451 | trace_graph_plot_remove_cpu(ginfo, plot, cpu_info->cpu); | 451 | trace_graph_plot_remove_cpu(ginfo, plot, cpu_info->cpu); |
452 | free_record(cpu_info->last_record); | ||
452 | free(cpu_info); | 453 | free(cpu_info); |
453 | } | 454 | } |
454 | 455 | ||