mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-07-24 17:35:25 +02:00
Fix memory leak in resolve_ip.
This commit is contained in:
parent
a8c696c565
commit
a1ec70d3b0
1 changed files with 1 additions and 0 deletions
|
@ -524,6 +524,7 @@ std::set<IP_PORT> Networking::resolve_ip(std::string dns)
|
|||
ips.insert(addr);
|
||||
}
|
||||
}
|
||||
freeaddrinfo(result);
|
||||
}
|
||||
|
||||
return ips;
|
||||
|
|
Loading…
Add table
Reference in a new issue