fix asan test failure in SingleMachineTest::ReleaseMemoryAfterDestruction.

PiperOrigin-RevId: 163386941
This commit is contained in:
Yuefeng Zhou 2017-07-27 14:19:33 -07:00 committed by TensorFlower Gardener
parent 4653d37a3b
commit 613bf1c7c1

View File

@ -501,6 +501,7 @@ Status GetDeviceMemoryStats(
}
allocator->GetStats(&stats);
(*allocator_stats_by_device)[device->name()] = stats;
delete device;
}
return Status::OK();
}