diff options
| author | 2026-06-02 16:11:04 +0800 | |
|---|---|---|
| committer | 2026-07-10 17:55:16 -0700 | |
| commit | ef3af1df4f3372bd8ad47619452a283048b3bc8d (patch) | |
| tree | 80aeb2219e95281732d2b09d83a3a06b6817620f /scripts/Makefile.thinlto | |
| parent | perf clang-format: Prioritize Python.h and expand other categories (diff) | |
perf metricgroup: Fix metric expression copy leaks
metricgroup__copy_metric_events() allocates a new metric expression and
duplicates metric_name before linking the expression into the destination
metric event.
Free new_expr when strdup() fails, and free the duplicated metric_name on
the later error paths.
Fixes: b85a4d61d302 ("perf metric: Allow modifiers on metrics")
Signed-off-by: Yu Peng <pengyu@kylinos.cn>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
