From 12a522b0e69643d44d2c365b172e948a7c3125dd Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 10 May 2024 13:51:23 +0200 Subject: [PATCH] added missing free for child array --- src/ast/ast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ast/ast.c b/src/ast/ast.c index ca2442c..ef7ce47 100644 --- a/src/ast/ast.c +++ b/src/ast/ast.c @@ -182,6 +182,7 @@ void AST_delete_node(struct AST_Node_t *node) { AST_delete_node(node->children[i]); } + free(node->children); free(node); }