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:
Rob Pilling
2019-10-10 23:40:57 +01:00
parent 194f7bface
commit 3b6b528ea9

View File

@@ -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);