mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 18:26:42 +00:00
perf tests hwmon_pmu: Remove double evlist__delete()
In the error path when failing to parse events the evlist is being deleted twice, keep the one after the out label. Fixes: 531ee0fd4836994f ("perf test: Add hwmon "PMU" test") Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Link: https://lore.kernel.org/r/ZzzoJNNcJJVnPCCe@x1 Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
5f2c8f4e10
commit
870748fa1f
@ -155,8 +155,6 @@ static int do_test(size_t i, bool with_pmu, bool with_alias)
|
||||
parse_events_error__init(&err);
|
||||
ret = parse_events(evlist, str, &err);
|
||||
if (ret) {
|
||||
evlist__delete(evlist);
|
||||
|
||||
pr_debug("FAILED %s:%d failed to parse event '%s', err %d\n",
|
||||
__FILE__, __LINE__, str, ret);
|
||||
parse_events_error__print(&err, str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user