fix asan test failure in SingleMachineTest::ReleaseMemoryAfterDestruction.
PiperOrigin-RevId: 163386941
This commit is contained in:
parent
4653d37a3b
commit
613bf1c7c1
@ -501,6 +501,7 @@ Status GetDeviceMemoryStats(
|
|||||||
}
|
}
|
||||||
allocator->GetStats(&stats);
|
allocator->GetStats(&stats);
|
||||||
(*allocator_stats_by_device)[device->name()] = stats;
|
(*allocator_stats_by_device)[device->name()] = stats;
|
||||||
|
delete device;
|
||||||
}
|
}
|
||||||
return Status::OK();
|
return Status::OK();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user