mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
win32: close zmq-signaler-port-sync event object to avoid handle leak
This commit is contained in:
parent
ce24557b11
commit
942c654d1c
@ -326,6 +326,10 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
|
||||
brc = SetEvent (sync);
|
||||
win_assert (brc != 0);
|
||||
|
||||
// Release the kernel object
|
||||
brc = CloseHandle (sync);
|
||||
win_assert (brc != 0);
|
||||
|
||||
return 0;
|
||||
|
||||
#elif defined ZMQ_HAVE_OPENVMS
|
||||
|
Loading…
Reference in New Issue
Block a user