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.
diff --git a/src/eval.c b/src/eval.c
index 4fc9f74..61843bc 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6640,7 +6640,7 @@
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 1482343..d8940c7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 371,
+/**/
370,
/**/
369,