Commit 8aefe491 authored by Nils Goroll's avatar Nils Goroll

we do need tree_fini

This reverts commit 92621497.
parent 92621497
......@@ -495,6 +495,19 @@ node_fini(struct req *req, struct node *node)
}
}
/* recursively fini all nodes */
static inline void
tree_fini(struct req *req, struct node *node)
{
struct node *child;
if (node->type == T_NEXUS)
VSTAILQ_FOREACH(child, &node->nexus.children, sibling)
tree_fini(req, child);
node_fini(req, node);
}
/* recursively free all nodes == free the tree */
static void
tree_free(struct req *req, struct node *node)
......@@ -2067,6 +2080,9 @@ vdp_pesi_fini(struct req *req, void **priv)
CHECK_OBJ_NOTNULL(bytes_tree, BYTES_TREE_MAGIC);
assert(bytes_tree == pesi_tree->tree);
//// XXX needed?
//tree_fini(req, bytes_tree->root);
pesi_destroy(&pesi);
task_fini(pesi_tree, pesi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment