mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
#5439 - Potential memory leak in host name resolution. (Eugene C.)
This commit is contained in:
parent
88020d5fb8
commit
395225cb7e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue