#5439 - Potential memory leak in host name resolution. (Eugene C.)

This commit is contained in:
Zack Middleton 2012-04-05 21:29:51 +00:00
parent 88020d5fb8
commit 395225cb7e

View file

@ -317,7 +317,7 @@ static qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int s
search->ai_addrlen = sadr_len;
memcpy(sadr, search->ai_addr, search->ai_addrlen);
freeaddrinfo(search);
freeaddrinfo(res);
return qtrue;
}