X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/1b2ef365edf850456a724b8ea3171734a492da37..0d2086c5db1f23869109ba6776cb6d2e6037714c:/misc.c?ds=inline diff --git a/misc.c b/misc.c index a2d741e5..ee1abf7b 100644 --- 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)