diff options
| author | Yu Peng <pengyu@kylinos.cn> | 2026-06-02 16:11:04 +0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-10 17:55:16 -0700 |
| commit | ef3af1df4f3372bd8ad47619452a283048b3bc8d (patch) | |
| tree | 80aeb2219e95281732d2b09d83a3a06b6817620f /scripts/Makefile.thinlto | |
| parent | c25a46dc6304000fffa9960cfb1f8fc296aa69a3 (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
