mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
And free addrinfo
(cherry picked from commit 986c80fb13e7ae6900792de5b4b43327af7ca76c)
This commit is contained in:
parent
af2d3cfd16
commit
619efb3d4e
1 changed files with 3 additions and 0 deletions
|
@ -433,7 +433,10 @@ static INT32 MS_Connect(const char *ip_addr, const char *str_port, INT32 async)
|
|||
{
|
||||
c = MS_SubConnect(ip_addr, str_port, async, aip->ai_addr, aip->ai_addrlen);
|
||||
if (c == 0)
|
||||
{
|
||||
I_freeaddrinfo(ai);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
I_freeaddrinfo(ai);
|
||||
return c;
|
||||
|
|
Loading…
Reference in a new issue