[PATCH 4.19 068/113] perf stat: Fix use-after-freed pointer detected by the smatch tool