perf sched: Fix memory leaks in 'perf sched map'
authorNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 01:49:37 +0000 (18:49 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 18:31:43 +0000 (11:31 -0700)
commitdc3a80c98884d86389b3b572c50ccc7f502cd41b
treea760579bf1619ca950cb94a892b7d55388146f26
parentaa9fdd106bab8c478d37eba5703c0950ad5c0d4f
perf sched: Fix memory leaks in 'perf sched map'

It maintains per-cpu pointers for the current thread but it doesn't
release the refcounts.

Fixes: 5e895278697c014e ("perf sched: Move curr_thread initialization to perf_sched__map()")
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250703014942.1369397-4-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-sched.c