Permalink
Browse files

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.
  • Loading branch information...
brammool committed Feb 25, 2017
1 parent a12e403 commit 14c2e18b63faaa4056d987fd501a68480cb40c5c
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/eval.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 371,
/**/
370,
/**/

0 comments on commit 14c2e18

Please sign in to comment.