]> granicus.if.org Git - vim/commitdiff
patch 7.4.922 v7.4.922
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Nov 2015 20:05:48 +0000 (21:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Nov 2015 20:05:48 +0000 (21:05 +0100)
Problem:    Leaking memory with ":helpt {dir-not-exists}".
Solution:   Free dirname. (Dominique Pelle)

src/ex_cmds.c
src/version.c

index b23f158f4fe5c15ec6378407e4326b7e26a0966f..c2b600c5b65a5dd8aaa62cb5638458f200b4d0d8 100644 (file)
@@ -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;
     }
 
index 3792aa05b072be01d1e643edb34ef2cabd1d6482..73c1b8f64eaa344c007bab33ab938d82e1507057 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    922,
 /**/
     921,
 /**/