Skip to content

Commit

Permalink
patch 8.2.4056: Vim9: memory leak when exporting function in autoload…
Browse files Browse the repository at this point in the history
… script

Problem:    Vim9: memory leak when exporting function in autoload script.
Solution:   Fee the name if replacing it.
  • Loading branch information
brammool committed Jan 10, 2022
1 parent 5e6b988 commit 6990b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scriptfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,7 @@ may_prefix_autoload(char_u *name)
{
vim_snprintf((char *)res, len, "%s%s",
si->sn_autoload_prefix, basename);
vim_free(name);
return res;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4056,
/**/
4055,
/**/
Expand Down

0 comments on commit 6990b78

Please sign in to comment.