diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-25 06:28:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-25 06:28:02 +0200 |
commit | 7d491c425334d9477637372a4ebec64c228c8430 (patch) | |
tree | 27ab26e8fefb0dff30c8d7e98a7cc7ab2853dc24 /src/ex_cmds2.c | |
parent | 6c6a603cd2db9cbd51c9b4e3ff44cbab72b98592 (diff) | |
download | vim-git-7d491c425334d9477637372a4ebec64c228c8430.tar.gz |
patch 8.1.1591: on error garbage collection may free memory in usev8.1.1591
Problem: On error garbage collection may free memory in use.
Solution: Reset may_garbage_collect when evaluating expression mapping.
Add tests. (Ozaki Kiichi, closes #4579)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 8871f5dbf..036a2a735 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -367,8 +367,8 @@ check_due_timer(void) int save_vgetc_busy = vgetc_busy; int save_did_emsg = did_emsg; int save_called_emsg = called_emsg; - int save_must_redraw = must_redraw; - int save_trylevel = trylevel; + int save_must_redraw = must_redraw; + int save_trylevel = trylevel; int save_did_throw = did_throw; int save_ex_pressedreturn = get_pressedreturn(); int save_may_garbage_collect = may_garbage_collect; |