From: Bram Moolenaar Date: Sat, 28 Mar 2020 21:37:14 +0000 (+0100) Subject: patch 8.2.0472: terminal highlight name is set twice, leaking memory X-Git-Tag: v8.2.0472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=360bdbda817920657a2ec8bf329c96a749dd7224;p=vim 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 index bc4532900..2ff697acf 100644 --- 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 index 1d71cf0f0..59e601421 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 472, /**/ 471, /**/