# HG changeset patch # User Bram Moolenaar # Date 1585431903 -3600 # Node ID b3f956c2ed3cef630adf9861ea7009391aa1787e # Parent 3d689590024df9067172024b1d30a701d0192dbc patch 8.2.0472: terminal highlight name is set twice, leaking memory Commit: https://github.com/vim/vim/commit/360bdbda817920657a2ec8bf329c96a749dd7224 Author: Bram Moolenaar Date: Sat Mar 28 22:37:14 2020 +0100 patch 8.2.0472: terminal highlight name is set twice, leaking memory Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one. diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -6925,8 +6925,6 @@ term_and_job_init( jobopt_T *orig_opt UNUSED) { term->tl_arg0_cmd = NULL; - if (opt->jo_set2 & JO2_TERM_HIGHLIGHT) - term->tl_highlight_name = vim_strsave(opt->jo_term_highlight); if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL) return FAIL; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 472, +/**/ 471, /**/ 470,