patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.
Problem: Vim9: using illegal pointer with inline function inside a lambda.
Solution: Clear eval_tofree_cmdline when advancing to the next line.
(closes #8578)
diff --git a/src/eval.c b/src/eval.c
index 5dc1642..2e8ab3d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2177,6 +2177,11 @@
vim_free(evalarg->eval_tofree);
evalarg->eval_tofree = line;
}
+
+ // Advanced to the next line, "arg" no longer points into the previous
+ // line.
+ VIM_CLEAR(evalarg->eval_tofree_cmdline);
+
return skipwhite(line);
}