Commit 6be3579b authored by Bastien Nocera's avatar Bastien Nocera

libcnary: Fix memleak in node_debug()

An iter was created but never destroyed.
parent ec9ba8bf
...@@ -142,6 +142,7 @@ void node_debug(node_t* node) { ...@@ -142,6 +142,7 @@ void node_debug(node_t* node) {
for(current = iter->begin; current != NULL; current = iter->next(iter)) { for(current = iter->begin; current != NULL; current = iter->next(iter)) {
node_debug(current); node_debug(current);
} }
node_iterator_destroy(iter);
} }
} }
......
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