aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-02-15 22:35:06 +0900
committerwatiko <service@mail.watiko.net>2016-02-15 22:38:19 +0900
commitd4bb84367f3cc00528ac9b28dea3e1e9962ccf88 (patch)
treef6ef62c5c6fccb6108d48221dd6af53be726a61f
parent7609a96a35224be3d7f3ba77691f9115e0281b4e (diff)
downloadrneovim-d4bb84367f3cc00528ac9b28dea3e1e9962ccf88.tar.gz
rneovim-d4bb84367f3cc00528ac9b28dea3e1e9962ccf88.tar.bz2
rneovim-d4bb84367f3cc00528ac9b28dea3e1e9962ccf88.zip
vim-patch:7.4.922
Problem: Leaking memory with ":helpt {dir-not-exists}". Solution: Free dirname. (Dominique Pelle) https://github.com/vim/vim/commit/1c2836e268ce930bca9ea1287d0d83e92ce1b3ff --- see: "[patch] command :helpt {dir} leaks memory when directory does not exist" https://groups.google.com/d/msg/vim_dev/WbcIbZ9YdUA/4eow2c3_AgAJ
-rw-r--r--src/nvim/ex_cmds.c1
-rw-r--r--src/nvim/version.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 4d62dd0ff9..4a423269cc 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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;
}
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 4de63ebb10..5a31ee4805 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -366,7 +366,7 @@ static int included_patches[] = {
// 925,
// 924 NA
// 923 NA
- // 922,
+ 922,
// 921 NA
// 920 NA
// 919 NA