Skip to content

Commit

Permalink
clear hypervisor_allocator_* variables after destroying the allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed Oct 31, 2019
1 parent 5552f21 commit 3862f71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hvpp/hvpp/lib/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3862f71

Please sign in to comment.