To: vim_dev@googlegroups.com Subject: Patch 8.2.4084 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4084 Problem: Memory leak when looking for autoload prefixed variable. Solution: Free the concatenated string. Files: src/evalvars.c *** ../vim-8.2.4083/src/evalvars.c 2022-01-13 20:18:52.704340964 +0000 --- src/evalvars.c 2022-01-13 20:38:08.806169511 +0000 *************** *** 2889,2894 **** --- 2889,2895 ---- { ht = &globvarht; ret = find_var_in_ht(ht, *name, auto_name, TRUE); + vim_free(auto_name); if (ret != NULL) { if (htp != NULL) *************** *** 2896,2902 **** return ret; } } - vim_free(auto_name); } } --- 2897,2902 ---- *** ../vim-8.2.4083/src/version.c 2022-01-13 20:18:52.704340964 +0000 --- src/version.c 2022-01-13 20:39:14.834065782 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4084, /**/ -- Yah, well, we had to carve our electrons out of driftwood we'd find. In the winter. Uphill. Both ways. /// 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 ///