From: Ian Rogers Date: Fri, 15 Nov 2024 20:12:58 +0000 (-0800) Subject: perf test: Add missing __exit calls in tool/hwmon tests X-Git-Tag: v6.13-rc1~68^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db26a8c9e3c285092ed3e14a33755582c04e0269;p=thirdparty%2Fkernel%2Flinux.git perf test: Add missing __exit calls in tool/hwmon tests Address sanitizer flagged the missing parse_events_error__exit when testing on ARM. Signed-off-by: Ian Rogers Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Athira Rajeev Cc: Ingo Molnar Cc: Jiri Olsa Cc: Kan Liang Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20241115201258.509477-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/tests/hwmon_pmu.c b/tools/perf/tests/hwmon_pmu.c index 5c4114354c65e..9f44093f18df2 100644 --- a/tools/perf/tests/hwmon_pmu.c +++ b/tools/perf/tests/hwmon_pmu.c @@ -194,6 +194,7 @@ static int do_test(size_t i, bool with_pmu, bool with_alias) } out: + parse_events_error__exit(&err); evlist__delete(evlist); return ret; } diff --git a/tools/perf/tests/tool_pmu.c b/tools/perf/tests/tool_pmu.c index 46896b485abf3..187942b749b7c 100644 --- a/tools/perf/tests/tool_pmu.c +++ b/tools/perf/tests/tool_pmu.c @@ -66,6 +66,7 @@ static int do_test(enum tool_pmu_event ev, bool with_pmu) } out: + parse_events_error__exit(&err); evlist__delete(evlist); return ret; }