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 -- 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 ///