summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-01 22:21:06 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-01 22:21:06 +0200
commita96732150cda2f242133228579b05437a39b8daa (patch)
treed47ae09c2dfccdb4331471cecbc3b35b43aab0a4 /src/misc2.c
parent9ad73239c26467832a5b553b2a4b99d7ffbaa25e (diff)
downloadvim-git-a96732150cda2f242133228579b05437a39b8daa.tar.gz
patch 7.4.1866v7.4.1866
Problem: Invalid memory access when exiting with EXITFREE defined. (Dominique Pelle) Solution: Set "really_exiting" and skip error messages.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index b4e94795f..f7b1de30d 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1044,6 +1044,9 @@ free_all_mem(void)
return;
entered = TRUE;
+ /* Set this flag to indicate some errors can be ignored. */
+ really_exiting = TRUE;
+
# ifdef FEAT_AUTOCMD
/* Don't want to trigger autocommands from here on. */
block_autocmds();