Re: perf metricgroup: Fix metric expression copy leaks
From: Namhyung Kim
Date: Sun Jul 12 2026 - 02:56:21 EST
On Tue, 02 Jun 2026 16:11:04 +0800, Yu Peng wrote:
> 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.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung