diff --git a/.gitignore b/.gitignore index bb7b0c6..933277c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build ground groundc .idea +Makefile diff --git a/src/repl.c b/src/repl.c index 31fef8e..00a18ad 100644 --- a/src/repl.c +++ b/src/repl.c @@ -1,5 +1,5 @@ /* - * Ground REPL (when ground is ran without any arguments) + * Ground REPL (shows when ground is ran without any arguments) * Copyright (C) 2026 DiamondNether90 * * This program is free software: you can redistribute it and/or modify @@ -36,6 +36,7 @@ int repl() { scope.isMainScope = true; while (true) { Estr programString = CREATE_ESTR(""); + *scope.labels = NULL; // Get program printf(">>> "); @@ -52,6 +53,7 @@ int repl() { GroundProgram program = createGroundProgram(); program = parseFile(programString.str); interpretGroundProgram(&program, &scope); + freeGroundProgram(&program); DESTROY_ESTR(programString); }