From d4bb84367f3cc00528ac9b28dea3e1e9962ccf88 Mon Sep 17 00:00:00 2001 From: watiko Date: Mon, 15 Feb 2016 22:35:06 +0900 Subject: 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 --- src/nvim/ex_cmds.c | 1 + src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit