ws2_32: Don't leak hostname (Coverity).
This commit is contained in:
parent
6db63a1867
commit
57d2e8f3c3
|
@ -5479,6 +5479,7 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
|
||||||
if (punixhints->ai_socktype < 0)
|
if (punixhints->ai_socktype < 0)
|
||||||
{
|
{
|
||||||
WSASetLastError(WSAESOCKTNOSUPPORT);
|
WSASetLastError(WSAESOCKTNOSUPPORT);
|
||||||
|
HeapFree(GetProcessHeap(), 0, hostname);
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue