Memory leak repair

This commit is contained in:
gongdaguo 2020-08-25 14:35:13 +08:00
parent 3a16925fa2
commit f5fd868ba4
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