MirrorYuChen / mnn_example

alibaba MNN, mobilenet classifier, centerface detecter, ultraface detecter, pfld landmarker and zqlandmarker, mobilefacenet
MIT License
202 stars 61 forks source link

A potential memory leak problem #30

Closed yanren1 closed 3 years ago

yanren1 commented 3 years ago

You probobly need to release the Tensor in mobilefacenet.cpp line 64 (nhwc_tensor) after line 68 as MNN suggested. Or we may face memory leak problem when you loop this function. And thank you so much for your work.

MirrorYuChen commented 3 years ago

Yes, You are right! Can you make a pull request to fix it?

MirrorYuChen commented 3 years ago

Thanks~