mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.2107: various memory leaks reported by asan
Problem: Various memory leaks reported by asan. Solution: Free the memory. (Ozaki Kiichi, closes #5003)
This commit is contained in:
@@ -1358,7 +1358,10 @@ free_scriptnames(void)
|
||||
int i;
|
||||
|
||||
for (i = script_items.ga_len; i > 0; --i)
|
||||
{
|
||||
vim_free(SCRIPT_ITEM(i).sn_name);
|
||||
ga_clear(&SCRIPT_ITEM(i).sn_prl_ga);
|
||||
}
|
||||
ga_clear(&script_items);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user