From f38cbfc99d0e3c1962db6c8850158e1a4d66df6c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 15 May 2013 10:34:26 +0200 Subject: [PATCH] ws2_32: Don't bother to free memory at process exit. --- dlls/ws2_32/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index a6a1b4c780b..80b317a48cf 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -897,9 +897,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad) case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: + if (fImpLoad) break; free_per_thread_data(); DeleteCriticalSection(&csWSgetXXXbyYYY); - num_startup = 0; break; case DLL_THREAD_DETACH: free_per_thread_data(); -- 2.11.4.GIT