mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-25 19:48:11 +00:00
Fix a memleak in pybind. (#2503)
This commit is contained in:
parent
1fdf1006ac
commit
75b4747701
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ void CreateSequenceOfTensors(AllocatorPtr alloc, const std::string& name_input,
|
|||
throw std::runtime_error("CreateSequenceOfTensors: Input is not a tensor");
|
||||
}
|
||||
auto p_tensor = CreateTensor(alloc, name_input, reinterpret_cast<PyArrayObject*>(py_obj));
|
||||
p_seq_tensors->tensors[i] = std::move(*(p_tensor.release()));
|
||||
p_seq_tensors->tensors[i] = std::move(*p_tensor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue