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

And free addrinfo

(cherry picked from commit 986c80fb13e7ae6900792de5b4b43327af7ca76c)
parent af2d3cfd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment