diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-17 12:40:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-17 19:43:56 +0200 |
commit | 192d7614b41dfeff4e6a507243f3a2948589ba8b (patch) | |
tree | 4d187d6996c95000988c8acd584e0413e673516d /sccomp | |
parent | 901b05e9fc852333824b6e58d0a30834b1211acd (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sccomp')
-rw-r--r-- | sccomp/source/solver/CoinMPSolver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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()); } } |