You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the library of darknet and I have to create a network and free with a number of times. But, if I do it, I can see a leak memory with this loop (create network and layers and free them). I was debugging the alloc and free code and I found I bug in the free code. I expected that the free code check the null value of each layer fields and if it not null, than free it and set to null. But, there is some field that it set wrong field to null, like in the image.
A problem example: When the function free the weights_ema, it set the weights to null, that it not correct.
The correct changes is, with before (top) and after (bottom):
The text was updated successfully, but these errors were encountered:
I am using the library of darknet and I have to create a network and free with a number of times. But, if I do it, I can see a leak memory with this loop (create network and layers and free them). I was debugging the alloc and free code and I found I bug in the free code. I expected that the free code check the null value of each layer fields and if it not null, than free it and set to null. But, there is some field that it set wrong field to null, like in the image.
A problem example: When the function free the
weights_ema
, it set theweights
to null, that it not correct.The correct changes is, with before (top) and after (bottom):
The text was updated successfully, but these errors were encountered: