lang: fix a bunch of memory leaks

This commit is contained in:
2025-04-17 23:15:48 +01:00
parent 11449b9919
commit 25c1fbd44b
4 changed files with 68 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ struct ast_node_type {
void (*n_init_state)(struct ivy_parser *, struct parser_state *, uintptr_t);
void (*n_collect_children)(
struct ivy_ast_node *, struct ivy_ast_node_iterator *);
void (*n_destroy)(struct ivy_ast_node *);
size_t n_state_size;
size_t n_node_size;