Skip to content

Commit e3647c8

Browse files
glepnirchrisbra
authored andcommitted
patch 9.1.1098: leaking memory with completing multi lines
Problem: leaking memory with completing multi lines (after v9.1.1086) Solution: free allocated memory (glepnir) closes: #16605 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent c5654b8 commit e3647c8

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/insexpand.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,7 +4416,11 @@ ins_compl_delete(void)
44164416
if ((int)curwin->w_cursor.col > col)
44174417
{
44184418
if (stop_arrow() == FAIL)
4419+
{
4420+
if (remaining)
4421+
VIM_CLEAR(remaining);
44194422
return;
4423+
}
44204424
backspace_until_column(col);
44214425
compl_ins_end_col = curwin->w_cursor.col;
44224426
}

src/version.c

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

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1098,
707709
/**/
708710
1097,
709711
/**/

0 commit comments

Comments
 (0)