projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc1121a
)
perf tools: Fix write_numa_topology to put cpu_map instead of free
author
Masami Hiramatsu
<
[email protected]
>
Wed, 9 Dec 2015 02:11:35 +0000
(11:11 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 9 Dec 2015 16:42:01 +0000
(13:42 -0300)
Fix write_numa_topology to put cpu_map instead of free because cpu_map
is managed based on refcnt.
Signed-off-by: Masami Hiramatsu <
[email protected]
>
Cc: Adrian Hunter <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/header.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/header.c
b/tools/perf/util/header.c
index 43838003c1a160ff56a0ae72a70dcef68631fe2f..5ac7bdb0dff79b9d3af11f2f6d8a9539ea340619 100644
(file)
--- 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,
done:
free(buf);
fclose(fp);
-
free
(node_map);
+
cpu_map__put
(node_map);
return ret;
}