[Kernel] delete host to guest mapping in case of address collision
This commit is contained in:
parent
9b3601c6fa
commit
1cf9b168e5
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue