To: vim_dev@googlegroups.com Subject: Patch 8.2.1860 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1860 Problem: Vim9: memory leak when throwing empty string. Solution: Free the empty string. Files: src/vim9execute.c *** ../vim-8.2.1859/src/vim9execute.c 2020-10-17 22:04:04.118833463 +0200 --- src/vim9execute.c 2020-10-17 22:55:57.958073856 +0200 *************** *** 2094,2099 **** --- 2094,2100 ---- if (tv->vval.v_string == NULL || *skipwhite(tv->vval.v_string) == NUL) { + vim_free(tv->vval.v_string); emsg(_(e_throw_with_empty_string)); goto failed; } *** ../vim-8.2.1859/src/version.c 2020-10-17 22:04:04.122833450 +0200 --- src/version.c 2020-10-17 22:58:05.141385563 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1860, /**/ -- From "know your smileys": <>:-) Bishop /// 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 ///