commit | b3a29558eedac9979f5276ae914934b7b7cbe06b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Nov 19 11:28:04 2021 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Nov 19 11:28:04 2021 +0000 |
tree | 574ec81a2f889213a6d049e5a6726ac8f30185fb | |
parent | 777175b0df8c5ec3cd30d19a2e887e661ac209c8 [diff] [blame] |
patch 8.2.3620: memory leak reported in libtlib Problem: Memory leak reported in libtlib. Solution: Call del_curterm() when cleaning up memory. Rename term.h to termdefs.h to avoid a name clash.
diff --git a/src/alloc.c b/src/alloc.c index a2dc080..d0901f4 100644 --- a/src/alloc.c +++ b/src/alloc.c
@@ -561,6 +561,7 @@ # endif free_termoptions(); + free_cur_term(); // screenlines (can't display anything now!) free_screenlines();