fix memory leak in SuperLUSupport

This commit is contained in:
Gael Guennebaud 2012-01-27 10:07:09 +01:00
parent 27d222d23e
commit fc2d85d139

View File

@ -397,6 +397,8 @@ class SuperLUBase
void initFactorization(const MatrixType& a) void initFactorization(const MatrixType& a)
{ {
set_default_options(&this->m_sluOptions);
const int size = a.rows(); const int size = a.rows();
m_matrix = a; m_matrix = a;
@ -520,7 +522,8 @@ class SuperLU : public SuperLUBase<_MatrixType,SuperLU<_MatrixType> >
*/ */
void analyzePattern(const MatrixType& matrix) void analyzePattern(const MatrixType& matrix)
{ {
init(); m_info = InvalidInput;
m_isInitialized = false;
Base::analyzePattern(matrix); Base::analyzePattern(matrix);
} }