diff options
author | Like Xu <likexu@tencent.com> | 2021-09-28 12:29:38 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-10-05 19:48:10 +0200 |
commit | b94729919db2c6737501c36ea6526a36d5d63fa2 (patch) | |
tree | 8660ba1ef06c6eb9911d0c7976f3a9d6e3986b69 /tools/perf/builtin-c2c.c | |
parent | Merge tag 'linux-kselftest-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/li... (diff) | |
download | linux-b94729919db2c6737501c36ea6526a36d5d63fa2.tar.xz linux-b94729919db2c6737501c36ea6526a36d5d63fa2.zip |
perf jevents: Free the sys_event_tables list after processing entries
The compiler reports that free_sys_event_tables() is dead code.
But according to the semantics, the "LIST_HEAD(sys_event_tables)" should
also be released, just like we do with 'arch_std_events' in main().
Fixes: e9d32c1bf0cd7a98 ("perf vendor events: Add support for arch standard events")
Signed-off-by: Like Xu <likexu@tencent.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210928102938.69681-1-likexu@tencent.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-c2c.c')
0 files changed, 0 insertions, 0 deletions