summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-10 21:05:48 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-10 21:05:48 +0100
commit1c2836e268ce930bca9ea1287d0d83e92ce1b3ff (patch)
tree054f2bbdcce3039c42dc32fb042b544b28802cc8 /src/ex_cmds.c
parentcd1c55f706c2f9b8310b8a9fc1f8226c7fd19372 (diff)
patch 7.4.922v7.4.922
Problem: Leaking memory with ":helpt {dir-not-exists}". Solution: Free dirname. (Dominique Pelle)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index b23f158f4f..c2b600c5b6 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;
}