Merge branch 'topic/smbus-block' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / tools / perf / tests / code-reading.c
index 22f8a00446e1f1b3cb6b447dbc1bc21ccfda3108..39c784a100a955143e401fc46cbcb93a2a3d8136 100644 (file)
@@ -545,8 +545,8 @@ out_err:
        if (evlist) {
                perf_evlist__delete(evlist);
        } else {
-               cpu_map__delete(cpus);
-               thread_map__delete(threads);
+               cpu_map__put(cpus);
+               thread_map__put(threads);
        }
        machines__destroy_kernel_maps(&machines);
        machine__delete_threads(machine);