LdDl / go-darknet

Go bindings for Darknet (YOLO v4 / v7-tiny / v3)
Apache License 2.0
82 stars 19 forks source link

memory leak in perform_network_detect #6

Closed LdDl closed 4 years ago

LdDl commented 4 years ago

Trouble description There is memory leak in this function https://github.com/LdDl/go-darknet/blob/master/network.c#L9

lines of code: https://github.com/LdDl/go-darknet/blob/master/network.c#L17 and https://github.com/LdDl/go-darknet/blob/master/network.c#L20

Possible soulutions Must free *X and excess call of _get_networkboxes(...) due some development legacy.