Commit 942c654d authored by KIU Shueng Chuan's avatar KIU Shueng Chuan

win32: close zmq-signaler-port-sync event object to avoid handle leak

parent ce24557b
...@@ -326,6 +326,10 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_) ...@@ -326,6 +326,10 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
brc = SetEvent (sync); brc = SetEvent (sync);
win_assert (brc != 0); win_assert (brc != 0);
// Release the kernel object
brc = CloseHandle (sync);
win_assert (brc != 0);
return 0; return 0;
#elif defined ZMQ_HAVE_OPENVMS #elif defined ZMQ_HAVE_OPENVMS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment