diff options
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 0a4e5b758a..a91d2c73ea 100644 --- a/src/term.c +++ b/src/term.c @@ -4248,6 +4248,7 @@ add_termcode(char_u *name, char_u *string, int flags) if (new_tc == NULL) { tc_max_len -= 20; + vim_free(s); return; } for (i = 0; i < tc_len; ++i) |