diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2015-12-08 21:11:35 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-09 11:42:01 -0500 |
commit | 5191d887681dd34ba3993a438d5746378952885a (patch) | |
tree | 19f4cfd04819fb3310c501c7abdb7b9264776324 /tools/perf | |
parent | cc1121ab9687d660cc02f50b1a4974112f87a8e6 (diff) |
perf tools: Fix write_numa_topology to put cpu_map instead of free
Fix write_numa_topology to put cpu_map instead of free because cpu_map
is managed based on refcnt.
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20151209021135.10245.79046.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 43838003c1a1..5ac7bdb0dff7 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -724,7 +724,7 @@ static int write_numa_topology(int fd, struct perf_header *h __maybe_unused, | |||
724 | done: | 724 | done: |
725 | free(buf); | 725 | free(buf); |
726 | fclose(fp); | 726 | fclose(fp); |
727 | free(node_map); | 727 | cpu_map__put(node_map); |
728 | return ret; | 728 | return ret; |
729 | } | 729 | } |
730 | 730 | ||