Skip to content
Snippets Groups Projects

Fix memory leak in the CHOLMOD wrapper code

Merged Oliver Sander requested to merge fix-memory-leak-in-cholmod-solver into master
All threads resolved!
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -461,10 +461,11 @@ public:
});
// Now analyse the pattern and optimal row order
// Remove old factor that may be left over from a previous run
if (L_)
CholmodMethod::free_factor(&L_, &c_);
// Now analyse the pattern and optimal row order
L_ = CholmodMethod::analyze(M.get(), &c_);
// Do the factorization (this may take some time)
Loading