[PATCH AUTOSEL 4.14 22/37] perf config: Fix a memory leak in collect_config()