[PATCH 4.9 125/175] perf record: Fix memory leak when using --user-regs=? to list registers