Skip to content

Commit 9d649a6

Browse files
authored
Merge pull request #266 from Realjayden/patch-1
Delete temporary object nhwc_Tensor to avoid memory leak
2 parents 98bdd41 + fb69039 commit 9d649a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp_demo/mnn/src/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ std::vector<BoxInfo> decode(cv::Mat &cv_mat, std::shared_ptr<MNN::Interpreter> &
103103
bbox_collection.push_back(box);
104104
}
105105
#endif
106+
delete nhwc_Tensor;
106107
return bbox_collection;
107108
}
108109

0 commit comments

Comments
 (0)