perf trace: Free thread_trace->files table
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2023 19:49:02 +0000 (16:49 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Jul 2023 14:30:26 +0000 (11:30 -0300)
commitfcca1faf11b47011770c361a1dfc36ed83905148
treee578ca8874dbe58c379d46224c135f4b735433af
parent7962ef13651a9163f07b530607392ea123482e8a
perf trace: Free thread_trace->files table

The fd->pathname table that is kept in 'struct thread_trace' and thus in
thread->priv must be freed when a thread is deleted.

This was also detected using -fsanitize=address.

Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/20230719202951.534582-6-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c