mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
updated for version 7.3.1240
Problem: Memory leak in findfile(). Solution: Free the memory. (Christian Brabandt)
This commit is contained in:
parent
c1c3d68da9
commit
df2bc27b52
@ -10448,7 +10448,7 @@ findfilendir(argvars, rettv, find_what)
|
|||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (rettv->v_type == VAR_STRING)
|
if (rettv->v_type == VAR_STRING || rettv->v_type == VAR_LIST)
|
||||||
vim_free(fresult);
|
vim_free(fresult);
|
||||||
fresult = find_file_in_path_option(first ? fname : NULL,
|
fresult = find_file_in_path_option(first ? fname : NULL,
|
||||||
first ? (int)STRLEN(fname) : 0,
|
first ? (int)STRLEN(fname) : 0,
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1240,
|
||||||
/**/
|
/**/
|
||||||
1239,
|
1239,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user