# HG changeset patch # User Bram Moolenaar # Date 1589145304 -7200 # Node ID b0242bcc74e7fc292bf64d65a154a2ccaf54f64c # Parent 305414dfc6d2e175553df6b3de1b7e347fbeeca3 patch 8.2.0734: Vim9: leaking memory when using :finish Commit: https://github.com/vim/vim/commit/04816717dfea6e2469ff4c9d40f68b59aaf03724 Author: Bram Moolenaar Date: Sun May 10 23:11:53 2020 +0200 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 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1773,7 +1773,11 @@ getsourceline(int c UNUSED, void *cookie // 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 734, +/**/ 733, /**/ 732,