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:
@@ -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
|
||||
|
Reference in New Issue
Block a user