diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,7 +167,8 @@ int main(int argc, char **argv) { ast_t *root = eval(visitor); /* print_root(root); */ ast_free(root); - free(visitor); + ast_free(visitor->root); + visitor_free(visitor); hash_table_free(parser->symbol_table); parser_free(parser); free(lexer); |