diff options
author | Bastien Nocera | 2018-07-24 14:03:15 +0200 |
---|---|---|
committer | Bastien Nocera | 2018-07-24 14:11:32 +0200 |
commit | 6be3579b2c23fef242cd49bb02ec7e693169768e (patch) | |
tree | 2190230ea83537039abaa17b866bc4706f6e218e | |
parent | ec9ba8bff6a4469aa75f6d570ab5109c061c6a9e (diff) | |
download | libplist-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.c | 1 |
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); } } |