mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 17:30:47 +02:00
Problem: test_pre_allocated_fd_tcp leaks addrinfo
Solution: free addrinfo to reduce Valgrind noise
This commit is contained in:
@@ -55,6 +55,8 @@ void pre_allocate_sock (void *zmq_socket, const char *address,
|
||||
rc = zmq_setsockopt (zmq_socket, ZMQ_USE_FD, &s_pre,
|
||||
sizeof (s_pre));
|
||||
assert(rc == 0);
|
||||
|
||||
freeaddrinfo(addr);
|
||||
}
|
||||
|
||||
void test_req_rep ()
|
||||
|
||||
Reference in New Issue
Block a user