Commit 57d2e8f3 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ws2_32: Don't leak hostname (Coverity).

parent 6db63a18
...@@ -5479,6 +5479,7 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment