To: vim_dev@googlegroups.com Subject: Patch 8.2.2968 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2968 (after 8.2.2967) Problem: Vim9: memory leak Solution: Unreference pt_outer of partial. Files: src/eval.c *** ../vim-8.2.2967/src/eval.c 2021-06-08 20:46:42.130585681 +0200 --- src/eval.c 2021-06-09 17:54:54.504473105 +0200 *************** *** 4301,4306 **** --- 4301,4309 ---- else func_ptr_unref(pt->pt_func); + // "out_up" is no longer used, decrement refcount on partial that owns it. + partial_unref(pt->pt_outer.out_up_partial); + // Decrease the reference count for the context of a closure. If down // to the minimum it may be time to free it. if (pt->pt_funcstack != NULL) *** ../vim-8.2.2967/src/version.c 2021-06-09 19:29:59.888951195 +0200 --- src/version.c 2021-06-09 20:50:31.063135248 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2968, /**/ -- I used to wonder about the meaning of life. But I looked it up in the dictionary under "L" and there it was - the meaning of life. It was less than I expected. - Dogbert /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///