Skip to content

Commit 360bdbd

Browse files
committed
patch 8.2.0472: terminal highlight name is set twice, leaking memory
Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one.
1 parent a30590d commit 360bdbd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/terminal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6925,8 +6925,6 @@ term_and_job_init(
69256925
jobopt_T *orig_opt UNUSED)
69266926
{
69276927
term->tl_arg0_cmd = NULL;
6928-
if (opt->jo_set2 & JO2_TERM_HIGHLIGHT)
6929-
term->tl_highlight_name = vim_strsave(opt->jo_term_highlight);
69306928

69316929
if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL)
69326930
return FAIL;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
472,
741743
/**/
742744
471,
743745
/**/

0 commit comments

Comments
 (0)