Commit d3fb7d93a6e2ead0506e17152030ab7dfdb1ac41

Jeff Hostetler 2015-04-17T10:04:01

Remove DllMain now that TLS data freed by threads

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/global.c b/src/global.c
index 0772bb0..b5e4b5d 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;