mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-16 17:08:24 +01:00
Fix memory leak in resolve_ip.
This commit is contained in:
parent
9b56698858
commit
65ea5d2c6c
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
Add a link
Reference in a new issue