From bee5f4f9f34f29e4c2ce8088da718b6030a4f496 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 5 Apr 2012 21:29:51 +0000 Subject: #5439 - Potential memory leak in host name resolution. (Eugene C.) --- src/qcommon/net_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index 64717856..0b494dc8 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -318,7 +318,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; } -- cgit