[PATCH 5.2 120/215] perf stat: Fix use-after-freed pointer detected by the smatch tool