mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
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 <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20241115201258.509477-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
180fd0c1ea
commit
db26a8c9e3
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user