]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - tools/perf/tests/hists_common.c
perf machine: Protect the machine->threads with a rwlock
[mirror_ubuntu-jammy-kernel.git] / tools / perf / tests / hists_common.c
index a62c091345163f70ea72ad2cb9dbc2297ae2da1a..456f884eb27b6c3a523a2ae06b28b104e13855c8 100644 (file)
@@ -96,6 +96,7 @@ struct machine *setup_fake_machine(struct machines *machines)
                        goto out;
 
                thread__set_comm(thread, fake_threads[i].comm, 0);
+               thread__put(thread);
        }
 
        for (i = 0; i < ARRAY_SIZE(fake_mmap_info); i++) {