Skip to content
Snippets Groups Projects
Commit 986c80fb authored by James R.'s avatar James R.
Browse files

And free addrinfo

parent e56bf125
No related branches found
No related tags found
1 merge request!2lol xd
...@@ -462,8 +462,11 @@ static INT32 MS_Connect(const char *ip_addr, const char *str_port, INT32 async) ...@@ -462,8 +462,11 @@ 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); c = MS_SubConnect(ip_addr, str_port, async, aip->ai_addr, aip->ai_addrlen);
if (c == 0) if (c == 0)
{
I_freeaddrinfo(ai);
return 0; return 0;
} }
}
I_freeaddrinfo(ai); I_freeaddrinfo(ai);
return c; return c;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment