]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1240 v7.3.1240
authorBram Moolenaar <Bram@vim.org>
Mon, 24 Jun 2013 20:17:32 +0000 (22:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 24 Jun 2013 20:17:32 +0000 (22:17 +0200)
Problem:    Memory leak in findfile().
Solution:   Free the memory. (Christian Brabandt)

src/eval.c
src/version.c

index c37075ba11badfd1f8239d3e6438f0946fbd3668..19b4479b682f214f652fd8a22275ab1bc137395e 100644 (file)
@@ -10448,7 +10448,7 @@ findfilendir(argvars, rettv, find_what)
     {
        do
        {
-           if (rettv->v_type == VAR_STRING)
+           if (rettv->v_type == VAR_STRING || rettv->v_type == VAR_LIST)
                vim_free(fresult);
            fresult = find_file_in_path_option(first ? fname : NULL,
                                               first ? (int)STRLEN(fname) : 0,
index 203daed52318645b500c28c3469e4e33427be71e..8bebdde19cc0ee2e25ac7cfe707ce8216b1791b8 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1240,
 /**/
     1239,
 /**/