mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 13:21:10 +01:00
Fix several missing msg_t::close calls.
I traced memory leaks found using AddressSanitizer down to these.
This commit is contained in:
@@ -229,6 +229,8 @@ int zmq::stream_t::xrecv (msg_t *msg_)
|
||||
// Rather than sendig this frame, we keep it in prefetched
|
||||
// buffer and send a frame with peer's ID.
|
||||
blob_t identity = pipe->get_identity ();
|
||||
rc = msg_->close();
|
||||
errno_assert (rc == 0);
|
||||
rc = msg_->init_size (identity.size ());
|
||||
errno_assert (rc == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user