Patch 8.2.2968

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 9, 2021, 2:51:19 PM6/9/21
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages