From 62e5c4feec952150765d9b6898c3013dcedccc3b Mon Sep 17 00:00:00 2001 From: Duligur Ibeling Date: Wed, 16 May 2018 15:45:53 -0700 Subject: [PATCH] fix leaking eta matrices --- src/basis_factorization/LUFactorization.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/basis_factorization/LUFactorization.cpp b/src/basis_factorization/LUFactorization.cpp index 108d7fafe..77753f158 100644 --- a/src/basis_factorization/LUFactorization.cpp +++ b/src/basis_factorization/LUFactorization.cpp @@ -333,7 +333,10 @@ void LUFactorization::clearFactorization() _LP.clear(); std::fill_n( _U, _m*_m, 0 ); - + + List::iterator it; + for ( it = _etas.begin(); it != _etas.end(); ++it ) + delete *it; _etas.clear(); }