mirror of
https://gitee.com/openharmony/ai_neural_network_runtime
synced 2024-12-04 05:50:44 +00:00
nnrt memory leak fixed
Signed-off-by: w30052974 <wangyifan94@huawei.com>
This commit is contained in:
parent
e3195c22ba
commit
e4000e4be3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user