ws2_32: Don't leak hostname (Coverity).

This commit is contained in:
André Hentschel 2014-01-04 18:36:34 +01:00 committed by Alexandre Julliard
parent 6db63a1867
commit 57d2e8f3c3
1 changed files with 1 additions and 0 deletions

View File

@ -5479,6 +5479,7 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
if (punixhints->ai_socktype < 0)
{
WSASetLastError(WSAESOCKTNOSUPPORT);
HeapFree(GetProcessHeap(), 0, hostname);
return SOCKET_ERROR;
}