Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcp: connect - fix another memory leak (coverity)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent e136a37 commit 60aa4e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tcp.c
Expand Up @@ -86,6 +86,7 @@ tcp_connect(const char *hostname, int port, const char *bindaddr,
bind(fd, (struct sockaddr *)&ip, IP_IN_ADDRLEN(ip)) < 0) {
snprintf(errbuf, errbufsize, "Cannot bind to IPv%s addr '%s'", bindaddr,
ai->ai_family == AF_INET6 ? "6" : "4");
freeaddrinfo(ai);
return -1;
}
}
Expand Down

0 comments on commit 60aa4e2

Please sign in to comment.