mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:7.4.922
Problem: Leaking memory with ":helpt {dir-not-exists}".
Solution: Free dirname. (Dominique Pelle)
1c2836e268
---
see: "[patch] command :helpt {dir} leaks memory when directory does not exist"
https://groups.google.com/d/msg/vim_dev/WbcIbZ9YdUA/4eow2c3_AgAJ
This commit is contained in:
@@ -4779,6 +4779,7 @@ void ex_helptags(exarg_T *eap)
|
||||
WILD_LIST_NOTFOUND|WILD_SILENT, WILD_EXPAND_FREE);
|
||||
if (dirname == NULL || !os_isdir(dirname)) {
|
||||
EMSG2(_("E150: Not a directory: %s"), eap->arg);
|
||||
xfree(dirname);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user