From 9cd417d5da8b143689c5a0ad0142c4432d2b3b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Sun, 27 Feb 2022 19:13:53 +0100 Subject: [PATCH] added memory freeing functions --- exercises/03/vslc/src/vslc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/03/vslc/src/vslc.c b/exercises/03/vslc/src/vslc.c index 7e26581..adeca25 100644 --- a/exercises/03/vslc/src/vslc.c +++ b/exercises/03/vslc/src/vslc.c @@ -23,7 +23,8 @@ main ( int argc, char **argv ) options ( argc, argv ); yyparse(); // Generated from grammar/bison, constructs syntax tree - + yylex_destroy(); // Free heap used by flex + if ( print_full_tree ) print_syntax_tree (); simplify_syntax_tree (); // In tree.c