Skip to content

Commit f849433

Browse files
committed
Swallow SCIPfree retcode in _free_scip_instance
1 parent d65ce51 commit f849433

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pyscipopt/scip.pxi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,8 @@ cdef class Model:
29292929
for j in range(nsubproblems):
29302930
PY_SCIP_CALL(SCIPfreeBendersSubproblem(self._scip, benders[i], j))
29312931

2932-
PY_SCIP_CALL(SCIPfree(&self._scip))
2932+
# Ignore SCIPfree retcode: cleanup must not turn into a new failure.
2933+
SCIPfree(&self._scip)
29332934
self._scip = NULL
29342935
self._freescip = False
29352936

0 commit comments

Comments
 (0)