!221 nnrt memory leak fixed

Merge pull request !221 from wangyifan/master
This commit is contained in:
openharmony_ci 2024-09-12 02:57:36 +00:00 committed by Gitee
commit fdfdb10df9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1108,6 +1108,11 @@ NNExecutor::~NNExecutor()
it.second.clear();
}
m_outputCreatedMem.clear();
if (m_executorConfig != nullptr) {
delete m_executorConfig;
m_executorConfig = nullptr;
}
}
} // namespace NeuralNetworkRuntime
} // namespace OHOS