mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
Fix memory leak in resolve_ip.
This commit is contained in:
parent
a8c696c565
commit
a1ec70d3b0
@ -524,6 +524,7 @@ std::set<IP_PORT> Networking::resolve_ip(std::string dns)
|
||||
ips.insert(addr);
|
||||
}
|
||||
}
|
||||
freeaddrinfo(result);
|
||||
}
|
||||
|
||||
return ips;
|
||||
|
Loading…
x
Reference in New Issue
Block a user