[PATCH] perf test: free cpus at the end oftest__open_syscall_event_on_all_cpus()

From: Han Pingtian
Date: Sun Jan 16 2011 - 04:30:40 EST


Call free() on cpu_map pointer cpus to clean up malloced memories
at the end of test__open_syscall_event_on_all_cpus().

Signed-off-by: Han Pingtian <phan@xxxxxxxxxx>
---
tools/perf/builtin-test.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index e7f098b..ae1e9a4 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -422,6 +422,7 @@ out_evsel_delete:
perf_evsel__delete(evsel);
out_cpu_free:
CPU_FREE(cpu_set);
+ free(cpus);
out_thread_map_delete:
thread_map__delete(threads);
return err;
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/