tcp: don't free on error (it won't be assigned)

This commit is contained in:
Adam Sutton 2014-05-22 22:51:45 +01:00
parent 731c39c910
commit 236ebc93cc

View file

@ -61,7 +61,6 @@ tcp_connect(const char *hostname, int port, const char *bindaddr,
if (res != 0) {
snprintf(errbuf, errbufsize, "%s", gai_strerror(res));
freeaddrinfo(ai);
return -1;
}