From: Bram Moolenaar Date: Tue, 10 Nov 2015 20:05:48 +0000 (+0100) Subject: patch 7.4.922 X-Git-Tag: v7.4.922 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c2836e268ce930bca9ea1287d0d83e92ce1b3ff;p=vim 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 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 @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 922, /**/ 921, /**/