[PATCH 6.1 255/451] perf record: Fix possible incorrect free in record__switch_output()