Mercurial > vim
changeset 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 | 0949a73e363f |
children | 209771baa028 |
files | src/version.c src/window.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1962, +/**/ 1961, /**/ 1960,
--- 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