From 4d9dbfc3fb5245028182a32e5044588bfda30874 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 17 May 2013 12:26:31 +0200 Subject: [PATCH] imagehlp: Don't bother to free memory at process exit. --- dlls/imagehlp/imagehlp_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/imagehlp/imagehlp_main.c b/dlls/imagehlp/imagehlp_main.c index 3ddae7aa5c..e505126381 100644 --- a/dlls/imagehlp/imagehlp_main.c +++ b/dlls/imagehlp/imagehlp_main.c @@ -40,10 +40,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0); break; case DLL_PROCESS_DETACH: + if (lpvReserved) break; HeapDestroy(IMAGEHLP_hHeap); - IMAGEHLP_hHeap = NULL; - break; - default: break; } return TRUE;