To: vim_dev@googlegroups.com Subject: Patch 8.2.0715 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0715 Problem: Vim9: leaking memory. Solution: Free strings after concatenating them. Files: src/vim9compile.c *** ../vim-8.2.0714/src/vim9compile.c 2020-05-07 22:18:58.260836097 +0200 --- src/vim9compile.c 2020-05-07 22:22:56.424060681 +0200 *************** *** 4229,4234 **** --- 4229,4236 ---- } mch_memmove(tv1.vval.v_string, s1, len1); STRCPY(tv1.vval.v_string + len1, s2); + vim_free(s1); + vim_free(s2); } else { *** ../vim-8.2.0714/src/version.c 2020-05-07 22:18:58.260836097 +0200 --- src/version.c 2020-05-07 22:23:45.331900695 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 715, /**/ -- hundred-and-one symptoms of being an internet addict: 66. You create a homepage with the impression to cure the afflicted...but your hidden agenda is to receive more e-mail. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///