To: vim_dev@googlegroups.com Subject: Patch 8.2.2907 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///