[PATCH] [NtDll]: freeing TLS

Eric Pouech eric.pouech at wanadoo.fr
Fri May 26 05:10:41 CDT 2006


- frees TLS pointers when exiting thread

A+
---

 dlls/ntdll/loader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index aac48dc..21ce342 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1908,6 +1908,7 @@ void WINAPI LdrShutdownThread(void)
     }
 
     RtlLeaveCriticalSection( &loader_section );
+    RtlFreeHeap( GetProcessHeap(), 0, NtCurrentTeb()->ThreadLocalStoragePointer );
 }
 
 




More information about the wine-patches mailing list