From cb51d61a64f606df9436d74c3e78c407ade9dc95 Mon Sep 17 00:00:00 2001 From: ruby0x1 Date: Mon, 7 Dec 2020 12:34:31 -0800 Subject: [PATCH] fix unmarked compiler value causing memory issues https://github.com/wren-lang/wren/issues/869 --- src/vm/wren_compiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm/wren_compiler.c b/src/vm/wren_compiler.c index 7b8b4be1..95c470dd 100644 --- a/src/vm/wren_compiler.c +++ b/src/vm/wren_compiler.c @@ -3638,6 +3638,7 @@ void wrenMarkCompiler(WrenVM* vm, Compiler* compiler) { wrenGrayValue(vm, compiler->parser->current.value); wrenGrayValue(vm, compiler->parser->previous.value); + wrenGrayValue(vm, compiler->parser->next.value); // Walk up the parent chain to mark the outer compilers too. The VM only // tracks the innermost one.