To: vim_dev@googlegroups.com Subject: Patch 8.1.1962 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.1962 Problem: Leaking memory when using tagfunc(). Solution: Free the user_data. (Dominique Pelle, closes #4886) Files: src/window.c *** ../vim-8.1.1961/src/window.c 2019-08-30 15:46:27.192906157 +0200 --- src/window.c 2019-09-01 20:20:59.538384080 +0200 *************** *** 4892,4899 **** win_free_lsize(wp); for (i = 0; i < wp->w_tagstacklen; ++i) vim_free(wp->w_tagstack[i].tagname); ! vim_free(wp->w_localdir); /* Remove the window from the b_wininfo lists, it may happen that the --- 4892,4901 ---- win_free_lsize(wp); for (i = 0; i < wp->w_tagstacklen; ++i) + { vim_free(wp->w_tagstack[i].tagname); ! vim_free(wp->w_tagstack[i].user_data); ! } vim_free(wp->w_localdir); /* Remove the window from the b_wininfo lists, it may happen that the *** ../vim-8.1.1961/src/version.c 2019-09-01 20:16:48.007438487 +0200 --- src/version.c 2019-09-01 20:20:20.018553826 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1962, /**/ -- You're as much use as a condom machine at the Vatican. -- Rimmer to Holly in Red Dwarf 'Queeg' /// 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 ///