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