nnrt memory leak fixed

Signed-off-by: w30052974 <wangyifan94@huawei.com>
This commit is contained in:
w30052974 2024-09-12 09:29:51 +08:00
parent e3195c22ba
commit e4000e4be3

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