mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 21:52:55 +00:00
Optimize check
This commit is contained in:
parent
4a5d9ba0b0
commit
386015f94b
@ -1261,7 +1261,12 @@ void hypervisor::allocate_vm_states()
|
|||||||
|
|
||||||
void hypervisor::free_vm_states()
|
void hypervisor::free_vm_states()
|
||||||
{
|
{
|
||||||
for (auto i = 0u; i < this->vm_state_count_ && this->vm_states_; ++i)
|
if (!this->vm_states_)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto i = 0u; i < this->vm_state_count_; ++i)
|
||||||
{
|
{
|
||||||
memory::free_aligned_memory(this->vm_states_[i]);
|
memory::free_aligned_memory(this->vm_states_[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user