perf env: Fix memory leak of cpu_pmu_caps
[linux-2.6-microblaze.git] / tools / perf / util / env.c
index 6c76594..cec2e6c 100644 (file)
@@ -191,6 +191,7 @@ void perf_env__exit(struct perf_env *env)
        zfree(&env->sibling_threads);
        zfree(&env->pmu_mappings);
        zfree(&env->cpu);
+       zfree(&env->cpu_pmu_caps);
        zfree(&env->numa_map);
 
        for (i = 0; i < env->nr_numa_nodes; i++)