[PATCH 5.4 097/183] perf record: Fix possible incorrect free in record__switch_output()