diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index 4a0960bb..dc9f290e 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -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; }