From 6be3579b2c23fef242cd49bb02ec7e693169768e Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 24 Jul 2018 14:03:15 +0200 Subject: libcnary: Fix memleak in node_debug() An iter was created but never destroyed. --- libcnary/node.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcnary') 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); } } -- cgit v1.1-32-gdbae