[PATCH 6.7 411/713] perf record: Fix possible incorrect free in record__switch_output()