incorrect free memory
thuliu-yt16 opened this issue · comments
Putting multiple array pointers in a single delete[] line is incorrect. E.g., in base_solver.h:
and
They lead to memory leaks.
Instead, they should be
delete[] A;
delete[] B;
delete[] X;
and
delete[] mask;
delete[] tgt;
delete[] grad;