Skip to content

Commit 4b2e48a

Browse files
committed
Correct memory allocation in getConsVars
1 parent dadff0e commit 4b2e48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyscipopt/scip.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6031,7 +6031,7 @@ cdef class Model:
60316031

60326032
SCIPgetConsNVars(self._scip, constraint.scip_cons, &nvars, &success)
60336033
_vars = <SCIP_VAR**> malloc(nvars * sizeof(SCIP_VAR*))
6034-
SCIPgetConsVars(self._scip, constraint.scip_cons, _vars, nvars*sizeof(SCIP_VAR*), &success)
6034+
SCIPgetConsVars(self._scip, constraint.scip_cons, _vars, nvars, &success)
60356035

60366036
vars = []
60376037
for i in range(nvars):

0 commit comments

Comments
 (0)