Fix freeaddrinfo must not be called with NULL arguments.
@@ -779,10 +779,7 @@ struct addrinfo* freerdp_tcp_resolve_host(const char* hostname, int port, int ai
status = getaddrinfo(hostname, service, &hints, &result);
if (status)
- {
- freeaddrinfo(result);
return NULL;
- }
return result;
}
