Skip to content

incorrect free memory #11

@thuliu-yt16

Description

@thuliu-yt16

Putting multiple array pointers in a single delete[] line is incorrect. E.g., in base_solver.h:


and
delete[] mask, tgt, grad;

They lead to memory leaks.

Instead, they should be

    delete[]  A;
    delete[]  B;
    delete[]  X;

and

    delete[]  mask;
    delete[]  tgt;
    delete[]  grad;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions