Commit 0eea9352 authored by Martin Sustrik's avatar Martin Sustrik

Fix for memory leak caused by long identities

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 5c093112
......@@ -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;
......
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