Skip to content

Commit db26a8c

Browse files
captain5050acmel
authored andcommitted
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 <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 180fd0c commit db26a8c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tools/perf/tests/hwmon_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static int do_test(size_t i, bool with_pmu, bool with_alias)
194194
}
195195

196196
out:
197+
parse_events_error__exit(&err);
197198
evlist__delete(evlist);
198199
return ret;
199200
}

tools/perf/tests/tool_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ static int do_test(enum tool_pmu_event ev, bool with_pmu)
6666
}
6767

6868
out:
69+
parse_events_error__exit(&err);
6970
evlist__delete(evlist);
7071
return ret;
7172
}

0 commit comments

Comments
 (0)