• R/O
  • SSH

vim: Commit

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


Commit MetaInfo

Revision6dce588f7a46688d18b0d17f5abbe542746d1c06 (tree)
Time2020-10-20 06:15:03
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.1869: Vim9: memory leak when using add()

Commit: https://github.com/vim/vim/commit/955347cc7e78352a5d49540573ae958ad45e6386
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 19 23:01:46 2020 +0200

patch 8.2.1869: Vim9: memory leak when using add()
Problem: Vim9: memory leak when using add().
Solution: Free the added item.

Change Summary

Incremental Difference

diff -r e2a0b8084d58 -r 6dce588f7a46 src/version.c
--- a/src/version.c Mon Oct 19 22:00:04 2020 +0200
+++ b/src/version.c Mon Oct 19 23:15:03 2020 +0200
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 1869,
755+/**/
754756 1868,
755757 /**/
756758 1867,
diff -r e2a0b8084d58 -r 6dce588f7a46 src/vim9execute.c
--- a/src/vim9execute.c Mon Oct 19 22:00:04 2020 +0200
+++ b/src/vim9execute.c Mon Oct 19 23:15:03 2020 +0200
@@ -2308,6 +2308,7 @@
23082308 }
23092309 if (list_append_tv(l, tv2) == FAIL)
23102310 goto failed;
2311+ clear_tv(tv2);
23112312 --ectx.ec_stack.ga_len;
23122313 }
23132314 break;
Show on old repository browser