Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3bd4751 authored by Michael Butler's avatar Michael Butler Committed by Gerrit Code Review
Browse files

Merge "Handle error returned by IBurstContext::freeMemory"

parents 7f13389b 1b09ea92
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -176,7 +176,10 @@ void ExecutionBurstController::MemoryCache::freeMemory(const nn::SharedMemory& m
        std::lock_guard guard(mMutex);
        const int32_t slot = mMemoryIdToSlot.at(memory);
        if (mBurstContext) {
            mBurstContext->freeMemory(slot);
            const auto ret = mBurstContext->freeMemory(slot);
            if (!ret.isOk()) {
                LOG(ERROR) << "IBustContext::freeMemory failed: " << ret.description();
            }
        }
        mMemoryIdToSlot.erase(memory);
        mMemoryCache[slot] = {};