1
0
mirror of https://github.com/payden/libwsclient synced 2024-09-28 21:40:44 +00:00

Free address info in libwsclient_open_connection

This commit is contained in:
Payden Sutherland 2012-11-15 00:12:48 -05:00
parent de9d192fcb
commit 1ddfa42529

View File

@ -344,6 +344,7 @@ int libwsclient_open_connection(const char *host, const char *port) {
}
break;
}
freeaddrinfo(servinfo);
if(p == NULL) {
return WS_OPEN_CONNECTION_ADDRINFO_EXHAUSTED_ERR;
}