summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-25 21:39:17 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-25 21:39:17 +0100
commit14c2e18b63faaa4056d987fd501a68480cb40c5c (patch)
tree1ac788bd8a245601eb06ad6443e05012c212547b
parenta12e40351d1357687e8b5dc3122fffef705bdc08 (diff)
downloadvim-git-14c2e18b63faaa4056d987fd501a68480cb40c5c.tar.gz
patch 8.0.0371: leaking memory when setting v:completed_itemv8.0.0371
Problem: Leaking memory when setting v:completed_item. Solution: Or the flags instead of setting them.
-rw-r--r--src/eval.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 4fc9f743e..61843bcfb 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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;
}
}
}
diff --git a/src/version.c b/src/version.c
index 1482343e7..d8940c7df 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 371,
+/**/
370,
/**/
369,