And free addrinfo

(cherry picked from commit 986c80fb13e7ae6900792de5b4b43327af7ca76c)
This commit is contained in:
James R 2019-08-03 13:30:22 -07:00
parent af2d3cfd16
commit 619efb3d4e

View file

@ -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;