mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
refactor: free more reachable memory with EXITFREE (#26349)
Discovered using __sanitizer_print_memory_profile().
This commit is contained in:
@@ -500,6 +500,10 @@ static void evalvars_clear(void)
|
||||
p->vv_list = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
partial_unref(vvlua_partial);
|
||||
vimvars[VV_LUA].vv_partial = vvlua_partial = NULL;
|
||||
|
||||
hash_clear(&vimvarht);
|
||||
hash_init(&vimvarht); // garbage_collect() will access it
|
||||
hash_clear(&compat_hashtab);
|
||||
|
Reference in New Issue
Block a user