Skip to content

Commit

Permalink
Merge pull request #266 from Realjayden/patch-1
Browse files Browse the repository at this point in the history
Delete temporary object nhwc_Tensor to avoid memory leak
  • Loading branch information
ppogg authored Jun 22, 2024
2 parents 98bdd41 + fb69039 commit 9d649a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp_demo/mnn/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ std::vector<BoxInfo> decode(cv::Mat &cv_mat, std::shared_ptr<MNN::Interpreter> &
bbox_collection.push_back(box);
}
#endif
delete nhwc_Tensor;
return bbox_collection;
}

Expand Down

0 comments on commit 9d649a6

Please sign in to comment.