mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 18:38:00 +08:00
win32: close zmq-signaler-port-sync event object to avoid handle leak
This commit is contained in:
parent
3b268c6943
commit
96ce417422
@ -325,6 +325,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…
x
Reference in New Issue
Block a user