mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Other] Fix some memory leak problem (#1422)
* Fix memory leak problem for paddleseg model * Fix bug * Update postprocessor.cc --------- Co-authored-by: root <root@bjyz-sys-gpu-kongming3.bjyz.baidu.com>
This commit is contained in:
@@ -28,8 +28,8 @@ void BindPPTracking(pybind11::module &m) {
|
||||
[](vision::tracking::PPTracking &self,
|
||||
pybind11::array &data) {
|
||||
auto mat = PyArrayToCvMat(data);
|
||||
vision::MOTResult *res = new vision::MOTResult();
|
||||
self.Predict(&mat, res);
|
||||
vision::MOTResult res;
|
||||
self.Predict(&mat, &res);
|
||||
return res;
|
||||
})
|
||||
.def("bind_recorder", &vision::tracking::PPTracking::BindRecorder)
|
||||
|
||||
Reference in New Issue
Block a user