mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.1.1962: leaking memory when using tagfunc()
Problem: Leaking memory when using tagfunc().
Solution: Free the user_data. (Dominique Pelle, closes vim/vim#4886)
55008aad50
This commit is contained in:
@@ -4642,8 +4642,10 @@ win_free (
|
|||||||
|
|
||||||
xfree(wp->w_lines);
|
xfree(wp->w_lines);
|
||||||
|
|
||||||
for (i = 0; i < wp->w_tagstacklen; ++i)
|
for (i = 0; i < wp->w_tagstacklen; i++) {
|
||||||
xfree(wp->w_tagstack[i].tagname);
|
xfree(wp->w_tagstack[i].tagname);
|
||||||
|
xfree(wp->w_tagstack[i].user_data);
|
||||||
|
}
|
||||||
|
|
||||||
xfree(wp->w_localdir);
|
xfree(wp->w_localdir);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user