Mercurial > vim
diff src/window.c @ 17932:70ed823bdbb6 v8.1.1962
patch 8.1.1962: leaking memory when using tagfunc()
Commit: https://github.com/vim/vim/commit/55008aad50601cae079037fda8fb434cde70c0f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 1 20:21:56 2019 +0200
patch 8.1.1962: leaking memory when using tagfunc()
Problem: Leaking memory when using tagfunc().
Solution: Free the user_data. (Dominique Pelle, closes https://github.com/vim/vim/issues/4886)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Sep 2019 20:30:04 +0200 |
parents | e4d3b6c466d4 |
children | 079e10a49ea1 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -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