diff --git a/src/hvpp/hvpp/lib/driver.cpp b/src/hvpp/hvpp/lib/driver.cpp index 9faaca8..2db65e8 100644 --- a/src/hvpp/hvpp/lib/driver.cpp +++ b/src/hvpp/hvpp/lib/driver.cpp @@ -224,6 +224,9 @@ namespace driver::common // Return allocated memory back to the system. // mm::system_allocator()->free(hypervisor_allocator_base_address_); + + hypervisor_allocator_base_address_ = nullptr; + hypervisor_allocator_capacity_ = 0; } auto hypervisor_allocator_recommended_capacity() noexcept -> size_t