added missing free for child array

This commit is contained in:
Sven Vogel 2024-05-10 13:51:23 +02:00
parent 80888fdb8d
commit 12a522b0e6
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ void AST_delete_node(struct AST_Node_t *node) {
AST_delete_node(node->children[i]);
}
free(node->children);
free(node);
}