[PATCH OLK-5.10 2/2] perf stat: Fix memory leakage when trying perf on an offline CPU