From 4a5d9ba0b001e2207297e257a888033b2974ba90 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 2 Apr 2022 20:27:14 +0200 Subject: [PATCH] No need for this exception as new already throws --- src/driver/hypervisor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/driver/hypervisor.cpp b/src/driver/hypervisor.cpp index 05c139f..d3a3812 100644 --- a/src/driver/hypervisor.cpp +++ b/src/driver/hypervisor.cpp @@ -1248,10 +1248,6 @@ void hypervisor::allocate_vm_states() // As Windows technically supports cpu hot-plugging, keep track of the allocation count this->vm_state_count_ = thread::get_processor_count(); this->vm_states_ = new vmx::vm_state*[this->vm_state_count_]{}; - if (!this->vm_states_) - { - throw std::runtime_error("Failed to allocate VM states array"); - } for (auto i = 0u; i < this->vm_state_count_; ++i) {