Mercurial > vim
changeset 20357:b0242bcc74e7 v8.2.0734
patch 8.2.0734: Vim9: leaking memory when using :finish
Commit: https://github.com/vim/vim/commit/04816717dfea6e2469ff4c9d40f68b59aaf03724
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 May 2020 23:15:04 +0200 |
parents | 305414dfc6d2 |
children | a30777aed380 |
files | src/scriptfile.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;