mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix a memory leak in CXSparse::SolveCholesky.
Thanks to Alexander Mordvintsev for reporting this. Change-Id: I5c6be4d3d28f062e83a1ad41cb8089c19362a005
This commit is contained in:
@@ -57,6 +57,7 @@ bool CXSparse::SolveCholesky(cs_di* A,
|
||||
cs_free(scratch_);
|
||||
}
|
||||
scratch_ = reinterpret_cast<CS_ENTRY*>(cs_malloc(A->n, sizeof(CS_ENTRY)));
|
||||
scratch_size_ = A->n;
|
||||
}
|
||||
|
||||
// Solve using Cholesky factorization
|
||||
|
||||
Reference in New Issue
Block a user