mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Fix memory leak with getting interfaces
There was no free after we were finished with the interface pointer
This commit is contained in:
@@ -191,6 +191,7 @@ std::vector<std::string> GetIpv4Addresses() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
freeifaddrs(interface);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user