1
0
forked from aniani/vim

patch 8.0.0371: leaking memory when setting v:completed_item

Problem:    Leaking memory when setting v:completed_item.
Solution:   Or the flags instead of setting them.
This commit is contained in:
Bram Moolenaar 2017-02-25 21:39:17 +01:00
parent a12e40351d
commit 14c2e18b63
2 changed files with 3 additions and 1 deletions

View File

@ -6640,7 +6640,7 @@ set_vim_var_dict(int idx, dict_T *val)
if (HASHITEM_EMPTY(hi))
continue;
--todo;
HI2DI(hi)->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX;
HI2DI(hi)->di_flags |= DI_FLAGS_RO | DI_FLAGS_FIX;
}
}
}

View File

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