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>
This commit is contained in:
glepnir
2025-02-10 21:16:32 +01:00
committed by Christian Brabandt
parent c5654b8448
commit e3647c8bf5
2 changed files with 6 additions and 0 deletions

View File

@ -4416,7 +4416,11 @@ ins_compl_delete(void)
if ((int)curwin->w_cursor.col > col)
{
if (stop_arrow() == FAIL)
{
if (remaining)
VIM_CLEAR(remaining);
return;
}
backspace_until_column(col);
compl_ins_end_col = curwin->w_cursor.col;
}

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1098,
/**/
1097,
/**/