diff options
-rw-r--r-- | tools/perf/util/callchain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index ad3c28578961..bbf7813fefe0 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util/callchain.c | |||
@@ -74,7 +74,7 @@ fill_node(struct callchain_node *node, struct ip_callchain *chain, int start) | |||
74 | for (i = start; i < chain->nr; i++) { | 74 | for (i = start; i < chain->nr; i++) { |
75 | struct callchain_list *call; | 75 | struct callchain_list *call; |
76 | 76 | ||
77 | call = malloc(sizeof(*chain)); | 77 | call = malloc(sizeof(*call)); |
78 | if (!call) { | 78 | if (!call) { |
79 | perror("not enough memory for the code path tree"); | 79 | perror("not enough memory for the code path tree"); |
80 | return; | 80 | return; |