mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4056: Vim9: memory leak when exporting function in autoload script
Problem: Vim9: memory leak when exporting function in autoload script. Solution: Fee the name if replacing it.
This commit is contained in:
@@ -2210,6 +2210,7 @@ may_prefix_autoload(char_u *name)
|
|||||||
{
|
{
|
||||||
vim_snprintf((char *)res, len, "%s%s",
|
vim_snprintf((char *)res, len, "%s%s",
|
||||||
si->sn_autoload_prefix, basename);
|
si->sn_autoload_prefix, basename);
|
||||||
|
vim_free(name);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4056,
|
||||||
/**/
|
/**/
|
||||||
4055,
|
4055,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user