Win32(core): do not duplicate handle
Unlike _endthread and ExitThread, _endthreadex doesn't close the handle.
It is therefore up to the caller to close it. Hence no need for an extra
handle duplication (that mostly amounted to a memory leak when the normal
path was used, i.e normal return from thread with implicit _endthreadex)
(cherry picked from commit afe774e0b19c7dcad8d0ae248480df1b0660a380)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Showing
Please register or sign in to comment