ntdll: Fix leaking activation context when terminating via exit_thread(). (Valgrind).
This commit is contained in:
parent
392321f4f6
commit
cfd09b0967
|
@ -150,7 +150,6 @@ HANDLE WINAPI OpenThread( DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwTh
|
||||||
*/
|
*/
|
||||||
void WINAPI ExitThread( DWORD code ) /* [in] Exit code for this thread */
|
void WINAPI ExitThread( DWORD code ) /* [in] Exit code for this thread */
|
||||||
{
|
{
|
||||||
RtlFreeThreadActivationContextStack();
|
|
||||||
RtlExitUserThread( code );
|
RtlExitUserThread( code );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -376,6 +376,7 @@ void exit_thread( int status )
|
||||||
}
|
}
|
||||||
|
|
||||||
LdrShutdownThread();
|
LdrShutdownThread();
|
||||||
|
RtlFreeThreadActivationContextStack();
|
||||||
|
|
||||||
pthread_sigmask( SIG_BLOCK, &server_block_set, NULL );
|
pthread_sigmask( SIG_BLOCK, &server_block_set, NULL );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue