perf bench futex: Fix memory leak of perf_cpu_map__new()
[sfrench/cifs-2.6.git] / tools / perf / bench / futex-requeue.c
index 97fe31fd3a236bc3ebd7934ad97028fd8c38718b..f7a5ffebb9408b5289c58fdebad226b648a3c3c8 100644 (file)
@@ -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);