mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix memory leak in TcpSocket (#3815)
This commit is contained in:
committed by
Ted John
parent
e4c94d7966
commit
e5cd157edc
@@ -433,6 +433,7 @@ private:
|
||||
{
|
||||
memcpy(ss, result->ai_addr, result->ai_addrlen);
|
||||
*ss_len = result->ai_addrlen;
|
||||
freeaddrinfo(result);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user