From: Luke Howard Date: Fri, 16 Sep 2011 05:37:50 +0000 (+1000) Subject: don't release TLS data in DLL_PROCESS_DETACH X-Git-Tag: tr-beta1~98 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=21f3dbf8824d21b99f2f30f89105b6afbc343f9f don't release TLS data in DLL_PROCESS_DETACH --- diff --git a/moonshot/mech_eap/util_tld.c b/moonshot/mech_eap/util_tld.c index e3710f9..a30f5f3 100644 --- a/moonshot/mech_eap/util_tld.c +++ b/moonshot/mech_eap/util_tld.c @@ -99,10 +99,6 @@ DllMain(HINSTANCE hDLL, /* DLL module handle */ } break; case DLL_PROCESS_DETACH: - /* Release the allocated memory for this thread. */ - tlsData = TlsGetValue(tlsIndex); - if (tlsData != NULL) - destroyThreadLocalData(tlsData); /* Release the TLS index. */ TlsFree(tlsIndex); gssEapFinalize();