mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed memory leaks for Yolo: train, test
This commit is contained in:
@ -11,6 +11,7 @@ void free_layer(layer l)
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
if (l.mask) free(l.mask);
|
||||
if (l.cweights) free(l.cweights);
|
||||
if (l.indexes) free(l.indexes);
|
||||
if (l.input_layers) free(l.input_layers);
|
||||
|
Reference in New Issue
Block a user