1
0
mirror of https://github.com/payden/libwsclient synced 2024-10-27 17:54:01 +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; break;
} }
freeaddrinfo(servinfo);
if(p == NULL) { if(p == NULL) {
return WS_OPEN_CONNECTION_ADDRINFO_EXHAUSTED_ERR; return WS_OPEN_CONNECTION_ADDRINFO_EXHAUSTED_ERR;
} }