From a4e448d586e33d6e71a4caf581be98ae5513c2a9 Mon Sep 17 00:00:00 2001 From: Laughing Date: Tue, 13 Dec 2016 11:09:01 +0800 Subject: [PATCH] misuse of 'close' use 'pollset_destroy' instead of 'close' to release pollset_fd --- src/pollset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pollset.cpp b/src/pollset.cpp index b0c0f68b..f08b34b4 100644 --- a/src/pollset.cpp +++ b/src/pollset.cpp @@ -55,7 +55,7 @@ zmq::pollset_t::~pollset_t () // Wait till the worker thread exits. worker.stop (); - close (pollset_fd); + pollset_destroy (pollset_fd); for (retired_t::iterator it = retired.begin (); it != retired.end (); ++it) LIBZMQ_DELETE(*it); }