diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-11-10 21:05:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-11-10 21:05:48 +0100 |
commit | 1c2836e268ce930bca9ea1287d0d83e92ce1b3ff (patch) | |
tree | 054f2bbdcce3039c42dc32fb042b544b28802cc8 /src | |
parent | cd1c55f706c2f9b8310b8a9fc1f8226c7fd19372 (diff) | |
download | vim-git-1c2836e268ce930bca9ea1287d0d83e92ce1b3ff.tar.gz |
patch 7.4.922v7.4.922
Problem: Leaking memory with ":helpt {dir-not-exists}".
Solution: Free dirname. (Dominique Pelle)
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_cmds.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index b23f158f4..c2b600c5b 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6574,6 +6574,7 @@ ex_helptags(eap) if (dirname == NULL || !mch_isdir(dirname)) { EMSG2(_("E150: Not a directory: %s"), eap->arg); + vim_free(dirname); return; } diff --git a/src/version.c b/src/version.c index 3792aa05b..73c1b8f64 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 922, +/**/ 921, /**/ 920, |