To: vim_dev@googlegroups.com Subject: Patch 8.2.2125 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2125 (after 8.2.2122) Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value. Files: src/scriptfile.c *** ../vim-8.2.2124/src/scriptfile.c 2020-12-09 17:16:46.708470428 +0100 --- src/scriptfile.c 2020-12-10 20:19:23.890698795 +0100 *************** *** 1492,1498 **** if (si->sn_save_cpo != NULL) { set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0); ! si->sn_save_cpo = NULL; } current_sctx = save_current_sctx; --- 1492,1498 ---- if (si->sn_save_cpo != NULL) { set_option_value((char_u *)"cpo", 0L, si->sn_save_cpo, 0); ! CLEAR_POINTER(si->sn_save_cpo); } current_sctx = save_current_sctx; *** ../vim-8.2.2124/src/version.c 2020-12-10 19:43:36.629155311 +0100 --- src/version.c 2020-12-10 20:20:31.474407585 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2125, /**/ -- No children may attend school with their breath smelling of "wild onions." [real standing law in West Virginia, United States of America] /// 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 ///