[PATCH 6.1 064/219] perf trace: Use zfree() to reduce chances of use after free