updated for version 7.3.1240

Problem:    Memory leak in findfile().
Solution:   Free the memory. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2013-06-24 22:17:32 +02:00
parent c1c3d68da9
commit df2bc27b52
2 changed files with 3 additions and 1 deletions

View 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,

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1240,
/**/
1239,
/**/