Sync address_space_host_memory_allocator.cpp to external/qemu am: 926d94b552

Original change: https://android-review.googlesource.com/c/platform/hardware/google/aemu/+/2924906

Change-Id: Ib25d3e1b3546aa6fb2f3e6722a4cbe4d005f693e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
GitOrigin-RevId: c0dcdcaf788e02be6598ad80b6ef49e2ef185df8
diff --git a/host-common/address_space_host_memory_allocator.cpp b/host-common/address_space_host_memory_allocator.cpp
index ed2e5fa..8db3bbe 100644
--- a/host-common/address_space_host_memory_allocator.cpp
+++ b/host-common/address_space_host_memory_allocator.cpp
@@ -107,7 +107,6 @@
     } else {
         return -1;
     }
-    return 0;
 }
 
 AddressSpaceDeviceType AddressSpaceHostMemoryAllocatorContext::getDeviceType() const {
@@ -162,6 +161,7 @@
                              phys_addr, host_ptr, size);
         }
     }
+    m_paddr2ptr.clear();
 }
 
 }  // namespace emulation