Skip to content

Commit

Permalink
patch 8.2.0472: terminal highlight name is set twice, leaking memory
Browse files Browse the repository at this point in the history
Problem:    Terminal highlight name is set twice, leaking memory.
Solution:   Delete one.
  • Loading branch information
brammool committed Mar 28, 2020
1 parent a30590d commit 360bdbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/terminal.c
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -738,6 +738,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
472,
/**/
471,
/**/
Expand Down

0 comments on commit 360bdbd

Please sign in to comment.