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 -- b...@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 /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201909011822.x81IMHx2023773%40masaka.moolenaar.net.