Skip to content

Commit de44b27

Browse files
committed
fix memory leak
1 parent 1099b2f commit de44b27

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/pyscipopt/scip.pxi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6032,7 +6032,6 @@ cdef class Model:
60326032
assert(constype == 'and', "The constraint handler %s does not have this functionality." % constype)
60336033

60346034
nvars = SCIPgetNVarsAnd(self._scip, and_cons.scip_cons)
6035-
_vars = <SCIP_VAR**> malloc(nvars * sizeof(SCIP_VAR*))
60366035
_vars = SCIPgetVarsAnd(self._scip, and_cons.scip_cons)
60376036

60386037
vars = []

0 commit comments

Comments
 (0)