• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修訂663cba20a5a57c66de1bc330f02810af27bae302 (tree)
時間2020-09-19 06:15:03
作者Bram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.1709: Vim9: memory leak when using multiple closures

Commit: https://github.com/vim/vim/commit/dec07510bbdf335a2de3d63591231a90ef3e4c80
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 18 23:11:10 2020 +0200

patch 8.2.1709: Vim9: memory leak when using multiple closures
Problem: Vim9: memory leak when using multiple closures.
Solution: Free the partial.

Change Summary

差異

diff -r 5be7084cc245 -r 663cba20a5a5 src/version.c
--- a/src/version.c Fri Sep 18 22:45:04 2020 +0200
+++ b/src/version.c Fri Sep 18 23:15:03 2020 +0200
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 1709,
755+/**/
754756 1708,
755757 /**/
756758 1707,
diff -r 5be7084cc245 -r 663cba20a5a5 src/vim9execute.c
--- a/src/vim9execute.c Fri Sep 18 22:45:04 2020 +0200
+++ b/src/vim9execute.c Fri Sep 18 23:15:03 2020 +0200
@@ -1830,6 +1830,7 @@
18301830 // TODO: use a garray_T on ectx.
18311831 SOURCING_LNUM = iptr->isn_lnum;
18321832 emsg("Multiple closures not supported yet");
1833+ vim_free(pt);
18331834 goto failed;
18341835 }
18351836 tv->v_type = VAR_PARTIAL;
Show on old repository browser