summaryrefslogtreecommitdiff
path: root/nn/runtime/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nn/runtime/Memory.cpp')
-rw-r--r--nn/runtime/Memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nn/runtime/Memory.cpp b/nn/runtime/Memory.cpp
index 7bfaf5562..e0bd6b953 100644
--- a/nn/runtime/Memory.cpp
+++ b/nn/runtime/Memory.cpp
@@ -194,7 +194,7 @@ Memory::Memory(sp<hal::IBuffer> buffer, uint32_t token)
: kBuffer(std::move(buffer)), kToken(token) {}
Memory::~Memory() {
- for (const auto [ptr, weakBurst] : mUsedBy) {
+ for (const auto& [ptr, weakBurst] : mUsedBy) {
if (const std::shared_ptr<ExecutionBurstController> burst = weakBurst.lock()) {
burst->freeMemory(getKey());
}