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:
committed by
Christian Brabandt
parent
c5654b8448
commit
e3647c8bf5
@ -4416,7 +4416,11 @@ ins_compl_delete(void)
|
|||||||
if ((int)curwin->w_cursor.col > col)
|
if ((int)curwin->w_cursor.col > col)
|
||||||
{
|
{
|
||||||
if (stop_arrow() == FAIL)
|
if (stop_arrow() == FAIL)
|
||||||
|
{
|
||||||
|
if (remaining)
|
||||||
|
VIM_CLEAR(remaining);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
backspace_until_column(col);
|
backspace_until_column(col);
|
||||||
compl_ins_end_col = curwin->w_cursor.col;
|
compl_ins_end_col = curwin->w_cursor.col;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1098,
|
||||||
/**/
|
/**/
|
||||||
1097,
|
1097,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user