mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +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);
|
WILD_LIST_NOTFOUND|WILD_SILENT, WILD_EXPAND_FREE);
|
||||||
if (dirname == NULL || !os_isdir(dirname)) {
|
if (dirname == NULL || !os_isdir(dirname)) {
|
||||||
EMSG2(_("E150: Not a directory: %s"), eap->arg);
|
EMSG2(_("E150: Not a directory: %s"), eap->arg);
|
||||||
|
xfree(dirname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -366,7 +366,7 @@ static int included_patches[] = {
|
|||||||
// 925,
|
// 925,
|
||||||
// 924 NA
|
// 924 NA
|
||||||
// 923 NA
|
// 923 NA
|
||||||
// 922,
|
922,
|
||||||
// 921 NA
|
// 921 NA
|
||||||
// 920 NA
|
// 920 NA
|
||||||
// 919 NA
|
// 919 NA
|
||||||
|
Reference in New Issue
Block a user