Fix: event need to clese when create event:
event = WSACreateEvent();
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
To reduce code duplication and future bugs, it would be better to replace this blob of code with a goto end and set res to 0.