Patch 8.2.4076
Problem: Memory leak in autoload import.
Solution: Do not overwrite the autoload prefix.
Files: src/vim9script.c
*** ../vim-8.2.4075/src/vim9script.c 2022-01-12 19:47:00.339543337 +0000
--- src/vim9script.c 2022-01-13 13:45:12.814358111 +0000
***************
*** 133,139 ****
si->sn_state = SN_STATE_HAD_COMMAND;
// Store the prefix with the script. It isused to find exported
functions.
! si->sn_autoload_prefix = get_autoload_prefix(si);
current_sctx.sc_version = SCRIPT_VERSION_VIM9;
si->sn_version = SCRIPT_VERSION_VIM9;
--- 133,140 ----
si->sn_state = SN_STATE_HAD_COMMAND;
// Store the prefix with the script. It isused to find exported
functions.
! if (si->sn_autoload_prefix == NULL)
! si->sn_autoload_prefix = get_autoload_prefix(si);
current_sctx.sc_version = SCRIPT_VERSION_VIM9;
si->sn_version = SCRIPT_VERSION_VIM9;
*** ../vim-8.2.4075/src/version.c 2022-01-13 13:24:28.207818222 +0000
--- src/version.c 2022-01-13 13:45:56.782276480 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4076,
/**/
--
Eight Megabytes And Continually Swapping.
/// 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/20220113134810.E0A591C0329%40moolenaar.net.