]> www.infradead.org Git - users/dwmw2/linux.git/commit
perf tests hwmon_pmu: Remove double evlist__delete()
authorArnaldo Carvalho de Melo <acme@kernel.org>
Tue, 19 Nov 2024 19:34:31 +0000 (16:34 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 22 Nov 2024 21:38:27 +0000 (13:38 -0800)
commit870748fa1fac5a397c26126bc32662e9249762c7
tree65c52d463f75a35263ae5c7fdf9b00c13380598d
parent5f2c8f4e1070e474642b9dea104f531b8be52e1e
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>
tools/perf/tests/hwmon_pmu.c