Files
Faisal Bukhari 1eb217ab2e perf parse-events: Fix evsel allocation failure
If evsel__new_idx() returns NULL, the function currently jumps to label
'out_err'.  Here, references to `cpus` and `pmu_cpus` are dropped.
Also, resources held by evsel->name and evsel->metric_id are freed.

But if evsel__new_idx() returns NULL, it can lead to NULL pointer
dereference.

Fixes: cd63c22168 ("perf parse-events: Minor __add_event refactoring")
Signed-off-by: Faisal Bukhari <faisalbukhari523@gmail.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-01-06 14:54:24 -08:00
..
2025-06-09 11:18:17 -07:00
2025-06-09 11:18:17 -07:00
2024-08-19 14:52:13 -03:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2025-12-03 11:07:46 -08:00
2025-11-19 16:20:15 -08:00
2025-05-02 15:36:14 -03:00
2025-02-10 11:46:02 -08:00
2025-03-10 11:31:24 -07:00
2025-03-10 11:31:24 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2024-12-12 15:53:36 -03:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-09-03 12:34:55 -03:00
2025-07-26 16:31:43 -07:00
2025-09-19 12:14:29 -03:00
2024-09-27 15:38:52 -03:00