Patch 9.0.0556

3 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 23, 2022, 8:28:40 AM9/23/22
to vim...@googlegroups.com

Patch 9.0.0556 (after 9.0.0554)
Problem: Leaking memory with nested functions.
Solution: Free saved pointer.
Files: src/eval.c


*** ../vim-9.0.0555/src/eval.c 2022-09-23 12:44:19.795794418 +0100
--- src/eval.c 2022-09-23 13:24:37.293760435 +0100
***************
*** 400,405 ****
--- 400,406 ----
// need to keep it around.
--etga->ga_len;
*eap->cmdlinep = ((char_u **)etga->ga_data)[etga->ga_len];
+ vim_free(evalarg->eval_tofree);
}
else
*eap->cmdlinep = evalarg->eval_tofree;
*** ../vim-9.0.0555/src/version.c 2022-09-23 12:56:49.309714862 +0100
--- src/version.c 2022-09-23 13:27:42.262643100 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 556,
/**/

--
hundred-and-one symptoms of being an internet addict:
140. You'd rather catch a score on the web than watch the game as
it is being played on tv.

/// 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