Patch 8.2.2907

6 views
Skip to first unread message

Bram Moolenaar

unread,
May 29, 2021, 4:35:03 PM5/29/21
to vim...@googlegroups.com

Patch 8.2.2907
Problem: Memory leak when running out of memory.
Solution: Free the allocated memory. (Dominique Pellé, closes #8284)
Files: src/term.c


*** ../vim-8.2.2906/src/term.c 2021-04-11 13:29:13.194824346 +0200
--- src/term.c 2021-05-29 22:31:25.302771603 +0200
***************
*** 4248,4253 ****
--- 4248,4254 ----
if (new_tc == NULL)
{
tc_max_len -= 20;
+ vim_free(s);
return;
}
for (i = 0; i < tc_len; ++i)
*** ../vim-8.2.2906/src/version.c 2021-05-29 22:25:13.539781642 +0200
--- src/version.c 2021-05-29 22:33:17.150473144 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2907,
/**/

--
TALL KNIGHT: We are now no longer the Knights Who Say Ni!
ONE KNIGHT: Ni!
OTHERS: Sh!
ONE KNIGHT: (whispers) Sorry.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages