[Kernel] delete host to guest mapping in case of address collision

This commit is contained in:
disjtqz 2023-10-14 15:59:58 -04:00 committed by Radosław Gliński
parent 9b3601c6fa
commit 1cf9b168e5
1 changed files with 1 additions and 5 deletions

View File

@ -58,11 +58,7 @@ XObject::~XObject() {
uint32_t ptr = guest_object_ptr_ - sizeof(X_OBJECT_HEADER); uint32_t ptr = guest_object_ptr_ - sizeof(X_OBJECT_HEADER);
auto header = memory()->TranslateVirtual<X_OBJECT_HEADER*>(ptr); auto header = memory()->TranslateVirtual<X_OBJECT_HEADER*>(ptr);
// Free the object creation info kernel_state()->object_table()->UnmapGuestObjectHostHandle(ptr);
if (header->object_type_ptr) {
memory()->SystemHeapFree(header->object_type_ptr);
}
memory()->SystemHeapFree(ptr); memory()->SystemHeapFree(ptr);
} }
} }