patch 9.1.1098: leaking memory with completing multi lines Commit: https://github.com/vim/vim/commit/e3647c8bf5b8143a24a37172e608a2e0c4661318 Author: glepnir <glephun...@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 <glephun...@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, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1thaPr-001HCq-A8%40256bit.org.