perf test code-reading: Avoid a leak of cpus and threads
authorIan Rogers <irogers@google.com>
Tue, 24 Jun 2025 19:03:22 +0000 (12:03 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 02:05:26 +0000 (19:05 -0700)
commit7a8557fc4aa12cffc97e5c8a1b8b8fd0275464b2
tree9c6feb5b5886b4cf71ce2e19383444b85b741de5
parent63a088e999de3f431f87d9a367933da894ddb613
perf test code-reading: Avoid a leak of cpus and threads

The perf_evlist__set_maps does the necessary gets on the arguments
passed, so the reference count bumping isn't necessary and creates a
memory leak.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250624190326.2038704-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/code-reading.c