commit | 1c2836e268ce930bca9ea1287d0d83e92ce1b3ff | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Nov 10 21:05:48 2015 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Nov 10 21:05:48 2015 +0100 |
tree | 054f2bbdcce3039c42dc32fb042b544b28802cc8 | |
parent | cd1c55f706c2f9b8310b8a9fc1f8226c7fd19372 [diff] [blame] |
patch 7.4.922 Problem: Leaking memory with ":helpt {dir-not-exists}". Solution: Free dirname. (Dominique Pelle)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index b23f158..c2b600c 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -6574,6 +6574,7 @@ if (dirname == NULL || !mch_isdir(dirname)) { EMSG2(_("E150: Not a directory: %s"), eap->arg); + vim_free(dirname); return; }