patch 8.1.1962: leaking memory when using tagfunc()
Problem: Leaking memory when using tagfunc().
Solution: Free the user_data. (Dominique Pelle, closes #4886)
diff --git a/src/window.c b/src/window.c
index 6f27c5c..4abceb4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4892,8 +4892,10 @@
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