Re: [PATCH] perf util: Fix use after free in metric__new

From: John Garry
Date: Fri Jan 14 2022 - 09:49:07 EST


On 14/01/2022 14:47, Arnaldo Carvalho de Melo wrote:
Addresses-Coverity-ID: 1494000
Signed-off-by: José Expósito<jose.exposito89@xxxxxxxxx>
Acked-by: Ian Rogers <irogers@google,com>

This can only happen in the ENOMEM case, but it is a good fix.

Fixes: b85a4d61d302 (perf metric: Allow modifiers on metrics)
Sorry, I missed this one_as well_, sigh...

- Arnaldo


Isn't there a v3 out there? Not sure if you noticed...

Cheers