From 19367a27472a06634424e56c1eb21e4f53da4e9e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Jan 2023 15:39:19 -0800 Subject: fixed invalid read; some memory leakage fixed but not completely --- src/include/ast.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ast.h') 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 -- cgit