xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

Memory Leak in DMatrix

Open bduclaux opened this issue 3 years ago • 0 comments

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

bduclaux avatar May 24 '21 08:05 bduclaux