!5149 memory leak repair

Merge pull request !5149 from gongdaguo/Memory_leak_repair
This commit is contained in:
mindspore-ci-bot 2020-08-25 20:52:19 +08:00 committed by Gitee
commit d173b055ac
2 changed files with 232 additions and 154 deletions

View File

@ -119,7 +119,7 @@ kernel::LiteKernel *KernelRegistry::GetKernel(const std::vector<tensor::Tensor *
KernelRegistry::~KernelRegistry() {
for (auto op_parameter : op_parameters_) {
delete(op_parameter);
free(op_parameter);
}
op_parameters_.clear();
}

File diff suppressed because it is too large Load Diff