Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338889
b: refs/heads/master
c: 03f2f93
h: refs/heads/master
i:
  338887: 2de9460
v: v3
  • Loading branch information
Suzuki K. Poulose authored and Arnaldo Carvalho de Melo committed Oct 24, 2012
1 parent a97b547 commit 1d71f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 68e94f4eb56d92ccb617a98fcac5e575702ec4fd
refs/heads/master: 03f2f93ae00762eb881424df1c688d034fd341ee
4 changes: 2 additions & 2 deletions trunk/tools/perf/util/rblist.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int rblist__add_node(struct rblist *rblist, const void *new_entry)
void rblist__remove_node(struct rblist *rblist, struct rb_node *rb_node)
{
rb_erase(rb_node, &rblist->entries);
--rblist->nr_entries;
rblist->node_delete(rblist, rb_node);
}

Expand Down Expand Up @@ -87,8 +88,7 @@ void rblist__delete(struct rblist *rblist)
while (next) {
pos = next;
next = rb_next(pos);
rb_erase(pos, &rblist->entries);
rblist->node_delete(rblist, pos);
rblist__remove_node(rblist, pos);
}
free(rblist);
}
Expand Down

0 comments on commit 1d71f56

Please sign in to comment.