perf trace: Add missed freeing of ordered events and thread
authorIan Rogers <irogers@google.com>
Tue, 17 Jun 2025 22:33:55 +0000 (15:33 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 24 Jun 2025 17:27:51 +0000 (10:27 -0700)
commiteda9e47fae276d2b7a2b6a826b38259e6481d879
tree6a79882411ef3a033930e5412b7733307010f696
parent9a79c50c2a95887859d5ac133180775b708b850a
perf trace: Add missed freeing of ordered events and thread

Caught by leak sanitizer running "perf trace BTF general tests". Make
the ordered_events initialization unconditional and early so that
trace__exit cleanup is simple - ordered_events__init doesn't allocate
and just sets up 4 values and inits 3 list heads.

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