* [PATCH] perf test: free cpus at the end of test__open_syscall_event_on_all_cpus()
@ 2011-01-16 9:30 Han Pingtian
0 siblings, 0 replies; only message in thread
From: Han Pingtian @ 2011-01-16 9:30 UTC (permalink / raw)
To: acme; +Cc: linux-kernel
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@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-16 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-16 9:30 [PATCH] perf test: free cpus at the end of test__open_syscall_event_on_all_cpus() Han Pingtian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox