X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fenv.c;h=bb964e86b09de18bb1eafe3765e5fccb1e87e448;hb=f9abf53af4c78b08da44d841d23308c4f4d74c83;hp=49a11d9d8b8f050efa48715cfba9e54731f63eef;hpb=004cb62efd5e9e4772efb46b49c16fa2618ecf3e;p=cascardo%2Flinux.git diff --git a/tools/perf/util/env.c b/tools/perf/util/env.c index 49a11d9d8b8f..bb964e86b09d 100644 --- a/tools/perf/util/env.c +++ b/tools/perf/util/env.c @@ -18,10 +18,13 @@ void perf_env__exit(struct perf_env *env) zfree(&env->cmdline_argv); zfree(&env->sibling_cores); zfree(&env->sibling_threads); - zfree(&env->numa_nodes); zfree(&env->pmu_mappings); zfree(&env->cpu); + for (i = 0; i < env->nr_numa_nodes; i++) + cpu_map__put(env->numa_nodes[i].map); + zfree(&env->numa_nodes); + for (i = 0; i < env->caches_cnt; i++) cpu_cache_level__free(&env->caches[i]); zfree(&env->caches);