From 70fd355f94f41bd53d236c9365ed4f888a8818eb Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 13 Feb 2026 00:48:34 +0100 Subject: libcnary: Fix leak on error in node_copy_deep() --- libcnary/node.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcnary') diff --git a/libcnary/node.c b/libcnary/node.c index c152f91..63b449c 100644 --- a/libcnary/node.c +++ b/libcnary/node.c @@ -312,6 +312,7 @@ node_t node_copy_deep(node_t node, copy_func_t copy_func) return NULL; } if (node_attach(copy, cc) < 0) { + node_destroy(cc); node_destroy(copy); return NULL; } -- cgit v1.1-32-gdbae