Patch 8.1.1962

12 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 1, 2019, 2:22:23 PM9/1/19
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages