Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
04a71652
Commit
04a71652
authored
Jul 30, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a tree_fini() which we should not need
parent
ef1a6dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
vdp_pesi.c
src/vdp_pesi.c
+16
-0
No files found.
src/vdp_pesi.c
View file @
04a71652
...
...
@@ -495,6 +495,19 @@ node_fini(struct req *req, struct node *node)
}
}
/* recursively fini all nodes */
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
)
...
...
@@ -2047,6 +2060,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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment