diff options
Diffstat (limited to 'tools/perf/tests/keep-tracking.c')
-rw-r--r-- | tools/perf/tests/keep-tracking.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/tests/keep-tracking.c b/tools/perf/tests/keep-tracking.c index 27eb75142b88..f9bc1fcd17cd 100644 --- a/tools/perf/tests/keep-tracking.c +++ b/tools/perf/tests/keep-tracking.c @@ -145,11 +145,10 @@ out_err: 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; } |