summaryrefslogtreecommitdiff
path: root/tools/perf/util/call-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/call-path.c')
-rw-r--r--tools/perf/util/call-path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/call-path.c b/tools/perf/util/call-path.c
index e8a80c41cba3..5c60b8be1cf6 100644
--- a/tools/perf/util/call-path.c
+++ b/tools/perf/util/call-path.c
@@ -40,7 +40,7 @@ void call_path_root__free(struct call_path_root *cpr)
struct call_path_block *pos, *n;
list_for_each_entry_safe(pos, n, &cpr->blocks, node) {
- list_del(&pos->node);
+ list_del_init(&pos->node);
free(pos);
}
free(cpr);