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>
This commit is contained in:
Noel Grandin
2021-05-17 19:43:56 +02:00
parent 901b05e9fc
commit 192d7614b4
+1
View File
@@ -326,6 +326,7 @@ void SAL_CALL CoinMPSolver::solve()
}
catch (const CoinError& e)
{
CoinUnloadProblem(hProb);
throw std::runtime_error(e.message());
}
}