rephrase comment

This commit is contained in:
me 2026-01-11 11:10:14 +02:00
parent f36482afc7
commit 9132dd2d66

View file

@ -153,7 +153,7 @@ Scope interpret_stmt(Stmt stmt, Memory memory, Scope scope) {
Stmt current = ((Stmt*)stmt.data.While.block.elements)[i]; Stmt current = ((Stmt*)stmt.data.While.block.elements)[i];
new_scope = interpret_stmt(current, memory, new_scope); new_scope = interpret_stmt(current, memory, new_scope);
} }
// free pointers before they leak // free the part of the scope we are done with
struct Cell* next = new_scope.next; struct Cell* next = new_scope.next;
while (next != NULL && next != scope.next) { while (next != NULL && next != scope.next) {
struct Cell* nextnext = next->next; struct Cell* nextnext = next->next;