summaryrefslogtreecommitdiff
path: root/src/include/ast.h
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-08 15:39:19 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-08 15:39:19 -0800
commit19367a27472a06634424e56c1eb21e4f53da4e9e (patch)
treefc58a08d36d451bdd1e7143a7358ac8a374355f7 /src/include/ast.h
parent87d82ead963c24d84a4f6e417b96b9bf73d132bb (diff)
fixed invalid read; some memory leakage fixed but not completely
Diffstat (limited to 'src/include/ast.h')
-rw-r--r--src/include/ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ast.h b/src/include/ast.h
index 8b60490..d330ee5 100644
--- a/src/include/ast.h
+++ b/src/include/ast.h
@@ -54,4 +54,6 @@ ast_t *init_ast_root(ast_t **subnodes, int size);
void ast_type_print(ast_t *e);
bool is_proper_list(ast_t *e);
+
+void ast_free(ast_t *e);
#endif