From d3fb7d93a6e2ead0506e17152030ab7dfdb1ac41 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Fri, 17 Apr 2015 10:04:01 -0400 Subject: [PATCH] Remove DllMain now that TLS data freed by threads --- src/global.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/global.c b/src/global.c index 0772bb0afd7..b5e4b5d00d8 100644 --- a/src/global.c +++ b/src/global.c @@ -278,14 +278,6 @@ void git__free_thread_global_state(void) TlsSetValue(_tls_index, NULL); } -BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved) -{ - if (reason == DLL_THREAD_DETACH) - git__free_thread_global_state(); - - return TRUE; -} - #elif defined(GIT_THREADS) && defined(_POSIX_THREADS) static pthread_key_t _tls_key;