summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/zmq_init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zmq_init.cpp b/src/zmq_init.cpp
index 7fa04fc..afb4011 100644
--- a/src/zmq_init.cpp
+++ b/src/zmq_init.cpp
@@ -89,6 +89,8 @@ bool zmq::zmq_init_t::write (::zmq_msg_t *msg_)
peer_identity.assign ((const unsigned char*) zmq_msg_data (msg_),
zmq_msg_size (msg_));
}
+ int rc = zmq_msg_close (msg_);
+ zmq_assert (rc == 0);
received = true;