added removal of root node after output generation

This commit is contained in:
Felix Müller 2024-05-15 17:03:18 +02:00
parent d7b690ec8a
commit 7789c7e597
1 changed files with 1 additions and 0 deletions

View File

@ -72,5 +72,6 @@ int main(int argc, char *argv[]) {
FILE *output = fopen("test.txt", "w");
AST_fprint_graphviz(output, root);
fclose(output);
AST_delete_node(root);
return 0;
}