0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3572: memory leak when closing window and using "multispace"

Problem:    Memory leak when closing window and using "multispace" in
            'listchars'.
Solution:   Free the memory. (closes #9071)
This commit is contained in:
zeertzjq
2021-11-02 20:56:07 +00:00
committed by Bram Moolenaar
parent e2f66064d1
commit 7a33ebfc5b
3 changed files with 15 additions and 5 deletions

View File

@@ -5041,6 +5041,8 @@ win_free(
clear_winopt(&wp->w_onebuf_opt);
clear_winopt(&wp->w_allbuf_opt);
vim_free(wp->w_lcs_chars.multispace);
#ifdef FEAT_EVAL
vars_clear(&wp->w_vars->dv_hashtab); // free all w: variables
hash_init(&wp->w_vars->dv_hashtab);