From fb3078fb6208b432c9874119deee4e6a350ac456 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 10 Apr 2009 18:49:38 +0000 Subject: [PATCH] fix memory leak in superlu backend --- Eigen/src/Sparse/SuperLUSupport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/Sparse/SuperLUSupport.h b/Eigen/src/Sparse/SuperLUSupport.h index cf0f802ed..6df94e35b 100644 --- a/Eigen/src/Sparse/SuperLUSupport.h +++ b/Eigen/src/Sparse/SuperLUSupport.h @@ -287,6 +287,8 @@ class SparseLU : public SparseLU ~SparseLU() { + Destroy_SuperNode_Matrix(&m_sluL); + Destroy_CompCol_Matrix(&m_sluU); } inline const LMatrixType& matrixL() const