mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix a memory leak in suitesparse.cc
Change-Id: I6eb8b33d927840d6c3631679de482038d9f3673a
This commit is contained in:
@@ -406,6 +406,7 @@ LinearSolverTerminationType SuiteSparseCholesky::Solve(const double* rhs,
|
||||
}
|
||||
|
||||
memcpy(solution, cholmod_dense_solution->x, num_cols * sizeof(*solution));
|
||||
ss_.Free(cholmod_dense_solution);
|
||||
return LINEAR_SOLVER_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user