From 0515e388dac711c555de741be11266b811d3fff4 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Sat, 11 Jun 2022 13:55:10 +0800 Subject: [PATCH] :bug: fix bug of forindex/foreach, which will cause SIGSEGV. example: var a=func{}; forindex(a();[0,1,2]); --- nasal_parse.h | 1 + 1 file changed, 1 insertion(+) diff --git a/nasal_parse.h b/nasal_parse.h index ecd4b65..6c5e0e2 100644 --- a/nasal_parse.h +++ b/nasal_parse.h @@ -946,6 +946,7 @@ nasal_ast nasal_parse::iter_gen() match(tok_id); while(is_call(tokens[ptr].type)) node.add(call_scalar()); + check_memory_reachable(node); } return node; }