| Index: runtime/bin/vmstats_impl.cc
|
| diff --git a/runtime/bin/vmstats_impl.cc b/runtime/bin/vmstats_impl.cc
|
| index b73fe64ddf809cf9da2872fd733592a32d8a6780..b3eebff2ba390a0f1f9523ff7fb6e4fea63a5894 100644
|
| --- a/runtime/bin/vmstats_impl.cc
|
| +++ b/runtime/bin/vmstats_impl.cc
|
| @@ -59,7 +59,8 @@ void VmStats::StartServer(int port, const char* root_dir) {
|
| // TODO(tball): allow host to be specified.
|
| char* host = const_cast<char*>(DEFAULT_HOST);
|
| OSError* os_error;
|
| - SocketAddresses* addresses = Socket::LookupAddress(host, -1, &os_error);
|
| + AddressList<SocketAddress>* addresses =
|
| + Socket::LookupAddress(host, -1, &os_error);
|
| if (addresses == NULL) {
|
| Log::PrintErr("Failed IP lookup of VmStats host %s: %s\n",
|
| host, os_error->message());
|
| @@ -68,6 +69,7 @@ void VmStats::StartServer(int port, const char* root_dir) {
|
| const intptr_t BACKLOG = 128; // Default value from HttpServer.dart
|
| int64_t address = ServerSocket::CreateBindListen(
|
| addresses->GetAt(0)->addr(), port, BACKLOG);
|
| + delete addresses;
|
| if (address < 0) {
|
| Log::PrintErr("Failed binding VmStats socket: %s:%d\n", host, port);
|
| return;
|
|
|