-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch 8.2.4076: memory leak in autoload import
Problem: Memory leak in autoload import. Solution: Do not overwrite the autoload prefix.
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,8 @@ 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. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
brammool
via email
Author
Contributor
|
||
si->sn_autoload_prefix = get_autoload_prefix(si); | ||
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; | ||
|
In
src/vim9script.c
, typo on line 135:A space is missing between
is
andused
: