commit | 28cf44f761a7bf261bcd0760a1c5f61070f69595 | [log] [tgz] |
---|---|---|
author | Dominique Pelle <dominique.pelle@gmail.com> | Sat May 29 22:34:19 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat May 29 22:34:19 2021 +0200 |
tree | 12fb1d07a421a1735692908ae661d51fd85af199 | |
parent | a5787c3742b43a8e662045a4e38c7a6ba957acbf [diff] [blame] |
patch 8.2.2907: memory leak when running out of memory Problem: Memory leak when running out of memory. Solution: Free the allocated memory. (Dominique Pellé, closes #8284)
diff --git a/src/term.c b/src/term.c index 0a4e5b7..a91d2c7 100644 --- a/src/term.c +++ b/src/term.c
@@ -4248,6 +4248,7 @@ if (new_tc == NULL) { tc_max_len -= 20; + vim_free(s); return; } for (i = 0; i < tc_len; ++i)