Commit: patch 9.1.1098: leaking memory with completing multi lines

3 views
Skip to first unread message

Christian Brabandt

unread,
Feb 10, 2025, 3:30:10 PM2/10/25
to vim...@googlegroups.com
patch 9.1.1098: leaking memory with completing multi lines

Commit: https://github.com/vim/vim/commit/e3647c8bf5b8143a24a37172e608a2e0c4661318
Author: glepnir <gleph...@gmail.com>
Date: Mon Feb 10 21:16:32 2025 +0100

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 <gleph...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/insexpand.c b/src/insexpand.c
index 9fdc1c0ff..a0f552e95 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -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;
}
diff --git a/src/version.c b/src/version.c
index 0a254e5cf..12cdfce5f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1098,
/**/
1097,
/**/
Reply all
Reply to author
Forward
0 new messages