]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - misc.c
Matt Harden's (modified) patch to do getservbyname() lookups on port-
[PuTTY.git] / misc.c
diff --git a/misc.c b/misc.c
index a2d741e54cbdbf5412ff5311f08c205d32d5e4f2..ee1abf7b6ebd9244ac59d6665b66615712130a0c 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -415,7 +415,7 @@ void *safemalloc(size_t size)
 #endif
        MessageBox(NULL, str, "PuTTY Fatal Error",
                   MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
-       exit(1);
+       cleanup_exit(1);
     }
 #ifdef MALLOC_LOG
     if (fp)
@@ -452,7 +452,7 @@ void *saferealloc(void *ptr, size_t size)
 #endif
        MessageBox(NULL, str, "PuTTY Fatal Error",
                   MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
-       exit(1);
+       cleanup_exit(1);
     }
 #ifdef MALLOC_LOG
     if (fp)