mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 17:30:47 +02:00
Fix several missing msg_t::close calls.
I traced memory leaks found using AddressSanitizer down to these.
This commit is contained in:
@@ -75,6 +75,9 @@ int main (void)
|
||||
int srcFd = zmq_msg_get(&msg, ZMQ_SRCFD);
|
||||
assert(srcFd >= 0);
|
||||
|
||||
rc = zmq_msg_close(&msg);
|
||||
assert (rc == 0);
|
||||
|
||||
// get the remote endpoint
|
||||
struct sockaddr_storage ss;
|
||||
#ifdef ZMQ_HAVE_HPUX
|
||||
|
||||
Reference in New Issue
Block a user