FidoProject / Fido

A lightweight C++ machine learning library for embedded electronics and robotics.
http://fidoproject.github.io/
MIT License
439 stars 81 forks source link

Fixed WireFitQlearn's memory leak issue #72

Open andraspatka opened 4 years ago

andraspatka commented 4 years ago

I found some memory leak issues in WireFitQLearn using Valgrind. modelNet and network are created in the constructor but not freed in the destructor. Also WireFitQLearn::reset allocates memory for network but does not free the previously allocated network.