0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1962: leaking memory when using tagfunc()

Problem:    Leaking memory when using tagfunc().
Solution:   Free the user_data. (Dominique Pelle, closes #4886)
This commit is contained in:
Bram Moolenaar
2019-09-01 20:21:56 +02:00
parent a144983633
commit 55008aad50
2 changed files with 5 additions and 1 deletions

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1962,
/**/
1961,
/**/

View File

@@ -4892,8 +4892,10 @@ win_free(
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