Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191331
b: refs/heads/master
c: cdd5b75
h: refs/heads/master
i:
  191329: b6d7787
  191327: cfb369d
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 10, 2010
1 parent d814601 commit 184c013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f8264539c62378cccbdf9b598927b034bef4a92
refs/heads/master: cdd5b75b0cd24c4d6a98b12a219217b1ccfe2586
6 changes: 3 additions & 3 deletions trunk/tools/perf/util/callchain.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ create_child(struct callchain_node *parent, bool inherit_children)
{
struct callchain_node *new;

new = malloc(sizeof(*new));
new = zalloc(sizeof(*new));
if (!new) {
perror("not enough memory to create child for code path tree");
return NULL;
Expand Down Expand Up @@ -213,7 +213,7 @@ fill_node(struct callchain_node *node, struct resolved_chain *chain, int start)
for (i = start; i < chain->nr; i++) {
struct callchain_list *call;

call = malloc(sizeof(*call));
call = zalloc(sizeof(*call));
if (!call) {
perror("not enough memory for the code path tree");
return;
Expand Down Expand Up @@ -386,7 +386,7 @@ int append_chain(struct callchain_node *root, struct ip_callchain *chain,
if (!chain->nr)
return 0;

filtered = malloc(sizeof(*filtered) +
filtered = zalloc(sizeof(*filtered) +
chain->nr * sizeof(struct resolved_ip));
if (!filtered)
return -ENOMEM;
Expand Down

0 comments on commit 184c013

Please sign in to comment.