0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4076: memory leak in autoload import

Problem:    Memory leak in autoload import.
Solution:   Do not overwrite the autoload prefix.
This commit is contained in:
Bram Moolenaar
2022-01-13 13:47:43 +00:00
parent 78a70533c3
commit 71930f174d
2 changed files with 4 additions and 1 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4076,
/**/
4075,
/**/

View File

@@ -133,6 +133,7 @@ ex_vim9script(exarg_T *eap UNUSED)
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;