xlearn
xlearn copied to clipboard
Memory Leak in DMatrix
Hello,
There is a memory leak in the C++ Implementation of DMatrix. The C++ destructor of DMatrix should delete every element of the SparseRow vector: std::vector<SparseRow*> row;
A call to this->Reset() in the DMatrix destructor should suffice to fix the leak. See data_structure.h line 147.
Best