Avoid leaking socket filedescriptors
When trying the various results of getaddrinfo, we forgot to close the socket when one fails, before trying the next one. Also use the destructor to make sure we do not have some other unrelated leak.
Showing
Please register or sign in to comment