summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Bastien Nocera2018-07-24 14:03:15 +0200
committerGravatar Bastien Nocera2018-07-24 14:11:32 +0200
commit6be3579b2c23fef242cd49bb02ec7e693169768e (patch)
tree2190230ea83537039abaa17b866bc4706f6e218e
parentec9ba8bff6a4469aa75f6d570ab5109c061c6a9e (diff)
downloadlibplist-6be3579b2c23fef242cd49bb02ec7e693169768e.tar.gz
libplist-6be3579b2c23fef242cd49bb02ec7e693169768e.tar.bz2
libcnary: Fix memleak in node_debug()
An iter was created but never destroyed.
-rw-r--r--libcnary/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcnary/node.c b/libcnary/node.c
index 6026925..3bd6975 100644
--- a/libcnary/node.c
+++ b/libcnary/node.c
@@ -142,6 +142,7 @@ void node_debug(node_t* node) {
for(current = iter->begin; current != NULL; current = iter->next(iter)) {
node_debug(current);
}
+ node_iterator_destroy(iter);
}
}