mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
updated for version 7.3.1240
Problem: Memory leak in findfile(). Solution: Free the memory. (Christian Brabandt)
This commit is contained in:
@ -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,
|
||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1240,
|
||||
/**/
|
||||
1239,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user