ntdll: Fix leaking activation context when terminating via exit_thread(). (Valgrind).

This commit is contained in:
Sebastian Lackner 2014-06-22 03:27:31 +02:00 committed by Alexandre Julliard
parent 392321f4f6
commit cfd09b0967
2 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,6 @@ HANDLE WINAPI OpenThread( DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwTh
*/
void WINAPI ExitThread( DWORD code ) /* [in] Exit code for this thread */
{
RtlFreeThreadActivationContextStack();
RtlExitUserThread( code );
}

View File

@ -376,6 +376,7 @@ void exit_thread( int status )
}
LdrShutdownThread();
RtlFreeThreadActivationContextStack();
pthread_sigmask( SIG_BLOCK, &server_block_set, NULL );