]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.742 v7.3.742
authorBram Moolenaar <Bram@vim.org>
Wed, 28 Nov 2012 21:12:44 +0000 (22:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 28 Nov 2012 21:12:44 +0000 (22:12 +0100)
Problem:    Leaking memory when :vimgrep restores the directory.
Solution:   Free the allocated memory. (Christian Brabandt)

src/quickfix.c
src/version.c

index 7dbdb965724aa89d2f979cdb11b61f0f40d1614b..2a485f0ad0b17cace4fa77fc1a38f026cabd9428 100644 (file)
@@ -3515,6 +3515,7 @@ restore_start_dir(dirname_start)
            ea.cmdidx = (curwin->w_localdir == NULL) ? CMD_cd : CMD_lcd;
            ex_cd(&ea);
        }
+       vim_free(dirname_now);
     }
 }
 
index a7a656939c994cc76ce4ef8967078ffcaaa4e847..4647f960a58c46c324d27ac2fd1285d158245cad 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    742,
 /**/
     741,
 /**/