mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
fix memory leak in SuperLUSupport
This commit is contained in:
parent
27d222d23e
commit
fc2d85d139
@ -397,6 +397,8 @@ class SuperLUBase
|
||||
|
||||
void initFactorization(const MatrixType& a)
|
||||
{
|
||||
set_default_options(&this->m_sluOptions);
|
||||
|
||||
const int size = a.rows();
|
||||
m_matrix = a;
|
||||
|
||||
@ -520,7 +522,8 @@ class SuperLU : public SuperLUBase<_MatrixType,SuperLU<_MatrixType> >
|
||||
*/
|
||||
void analyzePattern(const MatrixType& matrix)
|
||||
{
|
||||
init();
|
||||
m_info = InvalidInput;
|
||||
m_isInitialized = false;
|
||||
Base::analyzePattern(matrix);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user