• Erwan Tulou's avatar
    Win32(core): do not duplicate handle · afe774e0
    Erwan Tulou authored
    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)
    afe774e0
thread.c 21.2 KB