git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf bench futex: Fix memory leak of perf_cpu_map__new()
[sfrench/cifs-2.6.git]
/
tools
/
perf
/
bench
/
futex-requeue.c
diff --git
a/tools/perf/bench/futex-requeue.c
b/tools/perf/bench/futex-requeue.c
index 97fe31fd3a236bc3ebd7934ad97028fd8c38718b..f7a5ffebb9408b5289c58fdebad226b648a3c3c8 100644
(file)
--- a/
tools/perf/bench/futex-requeue.c
+++ b/
tools/perf/bench/futex-requeue.c
@@
-294,6
+294,7
@@
int bench_futex_requeue(int argc, const char **argv)
print_summary();
free(worker);
+ perf_cpu_map__put(cpu);
return ret;
err:
usage_with_options(bench_futex_requeue_usage, options);