0
0
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:
KIU Shueng Chuan 2012-12-27 21:31:12 +08:00 committed by Pieter Hintjens
parent 3b268c6943
commit 96ce417422

View File

@ -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