diff src/misc1.c @ 625:81fe2ccc1207 v7.0179

updated for version 7.0179
author vimboss
date Thu, 12 Jan 2006 23:22:24 +0000
parents 53114ef7778f
children 732c7ae5743e
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -7952,6 +7952,10 @@ preserve_exit()
 
     prepare_to_exit();
 
+    /* Setting this will prevent free() calls.  That avoids calling free()
+     * recursively when free() was invoked with a bad pointer. */
+    really_exiting = TRUE;
+
     out_str(IObuff);
     screen_start();		    /* don't know where cursor is now */
     out_flush();