]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace: Fix leaks of 'struct thread' in set_filter_loop_pids()
authorNamhyung Kim <namhyung@kernel.org>
Thu, 3 Apr 2025 05:42:13 +0000 (22:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 May 2025 20:11:50 +0000 (17:11 -0300)
commit30d20fb1f84ad5c92706fe2c6cbb2d4cc293e671
treebd6d63f37e4c63939be85581bb617e12ca83f290
parentbb3de7fa988c1b315ab8e87dc74e0d088284f142
perf trace: Fix leaks of 'struct thread' in set_filter_loop_pids()

I've found some leaks from 'perf trace -a'.

It seems there are more leaks but this is what I can find for now.

Fixes: 082ab9a18e532864 ("perf trace: Filter out 'sshd' in the tracer ancestry in syswide tracing")
Reviewed-by: Howard Chu <howardchu95@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250403054213.7021-1-namhyung@kernel.org
[ split from a larget patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c