{"action":"created","issue":{"url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/3","repository_url":"https://api.github.com/repos/for-aiur/yolo_cpp","labels_url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/3/comments","events_url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/3/events","html_url":"https://github.com/for-aiur/yolo_cpp/issues/3","id":235997458,"number":3,"title":"Memory leakage","user":{"login":"fdesmedt","id":20812373,"avatar_url":"https://avatars0.githubusercontent.com/u/20812373?v=4","gravatar_id":"","url":"https://api.github.com/users/fdesmedt","html_url":"https://github.com/fdesmedt","followers_url":"https://api.github.com/users/fdesmedt/followers","following_url":"https://api.github.com/users/fdesmedt/following{/other_user}","gists_url":"https://api.github.com/users/fdesmedt/gists{/gist_id}","starred_url":"https://api.github.com/users/fdesmedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdesmedt/subscriptions","organizations_url":"https://api.github.com/users/fdesmedt/orgs","repos_url":"https://api.github.com/users/fdesmedt/repos","events_url":"https://api.github.com/users/fdesmedt/events{/privacy}","received_events_url":"https://api.github.com/users/fdesmedt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-14T20:18:07Z","updated_at":"2018-03-28T20:44:28Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI like your cpp wrapper of the Yolo detector, and I want to use it for object detection integration in several of my projects. \r\n\r\nWhen I am processing large video-files, I see my memory slowly running full however. When I digged into the code, I saw at a lot of places the use of malloc/calloc calls are at the base of this problem (possibly inherited from the C code base?). Why not replace those with shared pointers to ensure correct memory behaviour?\r\n"},"comment":{"url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/comments/377029852","html_url":"https://github.com/for-aiur/yolo_cpp/issues/3#issuecomment-377029852","issue_url":"https://api.github.com/repos/for-aiur/yolo_cpp/issues/3","id":377029852,"user":{"login":"belopols","id":25016271,"avatar_url":"https://avatars0.githubusercontent.com/u/25016271?v=4","gravatar_id":"","url":"https://api.github.com/users/belopols","html_url":"https://github.com/belopols","followers_url":"https://api.github.com/users/belopols/followers","following_url":"https://api.github.com/users/belopols/following{/other_user}","gists_url":"https://api.github.com/users/belopols/gists{/gist_id}","starred_url":"https://api.github.com/users/belopols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belopols/subscriptions","organizations_url":"https://api.github.com/users/belopols/orgs","repos_url":"https://api.github.com/users/belopols/repos","events_url":"https://api.github.com/users/belopols/events{/privacy}","received_events_url":"https://api.github.com/users/belopols/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T20:44:28Z","updated_at":"2018-03-28T20:44:28Z","author_association":"NONE","body":"Found the issue.\r\nAt the yolo.cpp file, add this line right before delete[] probs in the try{} block\r\nfor(int i = 0; i<output_size;i++) delete probs[i];\r\n\r\nThen, the floats allocated to the probability array will get deleted as well. \r\n"}}
{"actor":{"display_login":"belopols"}}