From 6e6142874411f60809946bb05c1ee95f3c448561 Mon Sep 17 00:00:00 2001 From: zheng-kunfang <1845958389@qq.com> Date: Wed, 9 Jul 2025 14:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B3=84=E9=9C=B2=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zheng-kunfang <1845958389@qq.com> --- frameworks/native/neural_network_runtime/nncompiled_cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/native/neural_network_runtime/nncompiled_cache.cpp b/frameworks/native/neural_network_runtime/nncompiled_cache.cpp index effcab5..3c33833 100644 --- a/frameworks/native/neural_network_runtime/nncompiled_cache.cpp +++ b/frameworks/native/neural_network_runtime/nncompiled_cache.cpp @@ -131,6 +131,7 @@ OH_NN_ReturnCode NNCompiledCache::Restore(const std::string& cacheDir, cacheInfo.modelCheckSum[i]) { LOGE("[NNCompiledCache] Restore failed, the cache model file %{public}s has been changed.", cacheModelPath.c_str()); + munmap(modelBuffer.data, modelBuffer.length); close(modelBuffer.fd); return OH_NN_INVALID_FILE; } -- Gitee