# HG changeset patch # User Bram Moolenaar # Date 1592142304 -7200 # Node ID a9e3208048b2f88287dc4b53ffb1b3a29c2e6a9a # Parent f4c1966646f33131d4c3a3d81e1910cabe45cb1c patch 8.2.0978: leaking memory in termcodes test Commit: https://github.com/vim/vim/commit/0c8059e0b673a11f878acf4067a4b92679f1e0e5 Author: Bram Moolenaar Date: Sun Jun 14 15:35:58 2020 +0200 patch 8.2.0978: leaking memory in termcodes test Problem: Leaking memory in termcodes test. Solution: Set t_8u with set_option_value(). diff --git a/src/term.c b/src/term.c --- a/src/term.c +++ b/src/term.c @@ -4690,7 +4690,7 @@ handle_version_response(int first, int * // 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. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 978, +/**/ 977, /**/ 976,