From 7789c7e597e1a23f3a2c00fb236d249511139efe Mon Sep 17 00:00:00 2001 From: Filleo Date: Wed, 15 May 2024 17:03:18 +0200 Subject: [PATCH] added removal of root node after output generation --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 0591208..ac54e76 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }