Fix for memory leak caused by long identities

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-02-21 17:49:12 +01:00
parent 5c0931121b
commit 0eea93526d

View File

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