patch 8.2.0734: Vim9: leaking memory when using :finish
Problem: Vim9: leaking memory when using :finish.
Solution: Do not check for next line in third pass.
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 86e8b01..7a148a7 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1773,7 +1773,11 @@
// Only concatenate lines starting with a \ when 'cpoptions' doesn't
// contain the 'C' flag.
- if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL)
+ if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL
+#ifdef FEAT_EVAL
+ && sp->use_lines_ga < 0
+#endif
+ )
{
// compensate for the one line read-ahead
--sp->sourcing_lnum;