We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 150b718 + 6008ac7 commit f03cc84Copy full SHA for f03cc84
kirc.c
@@ -78,6 +78,7 @@ irc_init() {
78
getaddrinfo(host, port, &hints, &res);
79
conn = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
80
connect(conn, res->ai_addr, res->ai_addrlen);
81
+ freeaddrinfo(res);
82
fcntl(conn, F_SETFL, O_NONBLOCK);
83
}
84
0 commit comments