vmm: memory_manager: free memslot in remove_userspace_mapping

remove_userspace_mapping tears down the KVM mapping but never returns
the slot id to the allocator's free list. Call `free_memory_slot` to
avoid the leak.

Signed-off-by: Dylan Reid <dgreid@fb.com>
This commit is contained in:
Dylan Reid
2026-05-04 23:32:52 -07:00
committed by Rob Bradford
parent a048fa982d
commit 38bee23d89
+2
View File
@@ -2563,6 +2563,8 @@ impl MemoryManager {
userspace_addr_ = userspace_addr as u64 userspace_addr_ = userspace_addr as u64
); );
self.memory_slot_allocator().free_memory_slot(slot);
Ok(()) Ok(())
} }