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
parent ce24557b11
commit 942c654d1c

View File

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