mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Fix for memory leak caused by long identities
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
5c0931121b
commit
0eea93526d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user