added missing free for child array
This commit is contained in:
parent
80888fdb8d
commit
12a522b0e6
|
@ -182,6 +182,7 @@ void AST_delete_node(struct AST_Node_t *node) {
|
||||||
AST_delete_node(node->children[i]);
|
AST_delete_node(node->children[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(node->children);
|
||||||
free(node);
|
free(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue