Skip to content

Commit 14c2e18

Browse files
committed
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.
1 parent a12e403 commit 14c2e18

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6640,7 +6640,7 @@ set_vim_var_dict(int idx, dict_T *val)
66406640
if (HASHITEM_EMPTY(hi))
66416641
continue;
66426642
--todo;
6643-
HI2DI(hi)->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX;
6643+
HI2DI(hi)->di_flags |= DI_FLAGS_RO | DI_FLAGS_FIX;
66446644
}
66456645
}
66466646
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
371,
767769
/**/
768770
370,
769771
/**/

0 commit comments

Comments
 (0)