commit | 6990b78f253eb7f3ebd296fd5c8353e3da1cc8f2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jan 10 19:21:06 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jan 10 19:21:06 2022 +0000 |
tree | 90271e02d1725a343edcd00817ace34dd60c3603 | |
parent | 5e6b9882fe0218ae4878f6ad0561c8654a2277d8 [diff] [blame] |
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.
diff --git a/src/scriptfile.c b/src/scriptfile.c index 7c5da2e..9488666 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c
@@ -2210,6 +2210,7 @@ { vim_snprintf((char *)res, len, "%s%s", si->sn_autoload_prefix, basename); + vim_free(name); return res; } }