Patch 8.2.2844
Problem: Vim9: memory leak when using searchpair().
Solution: Free the v_instr field.
Files: src/typval.c
*** ../vim-8.2.2843/src/typval.c 2021-05-07 17:55:51.971584412 +0200
--- src/typval.c 2021-05-07 20:40:55.392009863 +0200
***************
*** 151,160 ****
channel_unref(varp->vval.v_channel);
varp->vval.v_channel = NULL;
#endif
case VAR_UNKNOWN:
case VAR_ANY:
case VAR_VOID:
- case VAR_INSTR:
break;
}
varp->v_lock = 0;
--- 151,163 ----
channel_unref(varp->vval.v_channel);
varp->vval.v_channel = NULL;
#endif
+ break;
+ case VAR_INSTR:
+ VIM_CLEAR(varp->vval.v_instr);
+ break;
case VAR_UNKNOWN:
case VAR_ANY:
case VAR_VOID:
break;
}
varp->v_lock = 0;
*** ../vim-8.2.2843/src/version.c 2021-05-07 19:44:15.500477283 +0200
--- src/version.c 2021-05-07 20:40:39.116050190 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2844,
/**/
--
Eagles may soar, but weasels don't get sucked into jet engines.
/// 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/202105071844.147IiOG41448400%40masaka.moolenaar.net.