I'm preparing a list with similar leaks (or a PR to fix them).
Is using std::unique_ptr (requires C++11) an option or should we add manual delete[] even in functions with multiple return statements?
Depending on how relevant the method is for the overall performance using a pre-sized std::vector might be another alternative.
In ClpNetworkMatrix.cpp line 1220:
this array is never delete'd.
I'm preparing a list with similar leaks (or a PR to fix them). Is using std::unique_ptr (requires C++11) an option or should we add manual delete[] even in functions with multiple return statements? Depending on how relevant the method is for the overall performance using a pre-sized std::vector might be another alternative.