summaryrefslogtreecommitdiff
path: root/src/qcommon/net_ip.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-04-05 21:29:51 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:19:24 +0000
commitbee5f4f9f34f29e4c2ce8088da718b6030a4f496 (patch)
tree99dcf1174213878c92f15a4ed79cb7c6af3f4e69 /src/qcommon/net_ip.c
parent96081431040d880a7de39a160c283a0dfcbca375 (diff)
#5439 - Potential memory leak in host name resolution. (Eugene C.)
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r--src/qcommon/net_ip.c2
1 files changed, 1 insertions, 1 deletions
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;
}