Skip to content

Commit fb69039

Browse files
authored
Delete temporary object nhwc_Tensor to avoid memory leak
1 parent 98bdd41 commit fb69039

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)