commit | 03ad9747c5f2169556467101e96bc390c5aa4b83 | [log] [tgz] |
---|---|---|
author | Arnaldo Carvalho de Melo <[email protected]> | Fri Jan 03 15:56:06 2014 -0300 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Mon Jan 13 10:06:21 2014 -0300 |
tree | c60f2e8ad184a10ed493de0d6db07d2f03aae130 | |
parent | 3e2be2da8f76ef5b2e8e59c3dc8acd24640b4af4 [diff] [blame] |
perf evlist: Move destruction of maps to evlist destructor Instead of requiring tools to do an extra destructor call just before calling perf_evlist__delete. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
diff --git a/tools/perf/tests/keep-tracking.c b/tools/perf/tests/keep-tracking.c index 27eb751..f9bc1fc 100644 --- a/tools/perf/tests/keep-tracking.c +++ b/tools/perf/tests/keep-tracking.c
@@ -145,11 +145,10 @@ perf_evlist__munmap(evlist); perf_evlist__close(evlist); perf_evlist__delete(evlist); - } - if (cpus) + } else { cpu_map__delete(cpus); - if (threads) thread_map__delete(threads); + } return err; }