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:
parent
de9d192fcb
commit
1ddfa42529
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user