diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-14 15:35:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-14 15:35:58 +0200 |
commit | 0c8059e0b673a11f878acf4067a4b92679f1e0e5 (patch) | |
tree | e9e7a90b2096b370751f70330aac516d16b9f39f /src/term.c | |
parent | 8dff4cbf6d917e20322821e8e866ffc1c1175258 (diff) | |
download | vim-git-0c8059e0b673a11f878acf4067a4b92679f1e0e5.tar.gz |
patch 8.2.0978: leaking memory in termcodes testv8.2.0978
Problem: Leaking memory in termcodes test.
Solution: Set t_8u with set_option_value().
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index b806a8907..f8b56592d 100644 --- a/src/term.c +++ b/src/term.c @@ -4690,7 +4690,7 @@ handle_version_response(int first, int *arg, int argc, char_u *tp) // Unless the underline RGB color is expected to work, disable "t_8u". // It does not work for the real Xterm, it resets the background color. if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) - T_8U = empty_option; + set_option_value((char_u *)"t_8u", 0L, (char_u *)"", 0); // Only set 'ttymouse' automatically if it was not set // by the user already. |