[PATCH AUTOSEL 4.9 14/27] perf config: Fix a memory leak in collect_config()