Optimize check

This commit is contained in:
momo5502 2022-04-02 20:29:55 +02:00
parent 4a5d9ba0b0
commit 386015f94b

View File

@ -1261,7 +1261,12 @@ void hypervisor::allocate_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]);
}