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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202106091851.159IpCAC1182588%40masaka.moolenaar.net.