]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace: Fix leaks of 'struct thread' in fprintf_sys_enter()
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:10:09 +0000 (17:10 -0300)
commitbb3de7fa988c1b315ab8e87dc74e0d088284f142
tree378d90f7892241a0f21c1981eddca8c38b430250
parent70e21ac8b0543def19c8bd1addeec4995fbc0ea9
perf trace: Fix leaks of 'struct thread' in fprintf_sys_enter()

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: 70351029b55677eb ("perf thread: Add support for reading the e_machine type for a thread")
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