From 82644f24cad16bbb9b99d09920a174867a9e67ee Mon Sep 17 00:00:00 2001 From: tangshihua Date: Thu, 15 Jun 2023 21:37:14 +0800 Subject: [PATCH] bugfix unmap Signed-off-by: tangshihua --- ai/neural_network_runtime/v1_0/common/mock_idevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ai/neural_network_runtime/v1_0/common/mock_idevice.cpp b/ai/neural_network_runtime/v1_0/common/mock_idevice.cpp index b374cbe86..0b62172cf 100644 --- a/ai/neural_network_runtime/v1_0/common/mock_idevice.cpp +++ b/ai/neural_network_runtime/v1_0/common/mock_idevice.cpp @@ -174,6 +174,7 @@ int32_t MockIDevice::ReleaseBuffer(const SharedBuffer &buffer) std::lock_guard lock(m_mtx); auto ash = m_ashmems[buffer.fd]; ash->UnmapAshmem(); + ash->CloseAshmem(); return HDF_SUCCESS; } -- GitLab