From 192d7614b41dfeff4e6a507243f3a2948589ba8b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 17 May 2021 12:40:48 +0200 Subject: don't leak on error path in Coin solver Change-Id: Ice460975511dbdfcfcde9a829283d2abac14c263 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115698 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sccomp/source/solver/CoinMPSolver.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sccomp') diff --git a/sccomp/source/solver/CoinMPSolver.cxx b/sccomp/source/solver/CoinMPSolver.cxx index bd12c85c4fc4..35ebf1fd19b2 100644 --- a/sccomp/source/solver/CoinMPSolver.cxx +++ b/sccomp/source/solver/CoinMPSolver.cxx @@ -326,6 +326,7 @@ void SAL_CALL CoinMPSolver::solve() } catch (const CoinError& e) { + CoinUnloadProblem(hProb); throw std::runtime_error(e.message()); } } -- cgit