Fix several missing msg_t::close calls.

I traced memory leaks found using AddressSanitizer down to these.
This commit is contained in:
Brian Silverman
2015-07-21 19:42:20 -07:00
parent 3f70aca749
commit 18791f2bfb
4 changed files with 18 additions and 0 deletions

View File

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