Skip to content

Commit

Permalink
Fix leak of CyCoinModel CppSelf
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Apr 18, 2024
1 parent efe4314 commit b663405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cylp/cy/CyCoinModel.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ cdef class CyCoinModel:
def __cinit__(self):
self.CppSelf = new CppCoinModel()

def __dealloc__(self):
del self.CppSelf

# cdef void CLP_addColumn(self, int numberInColumn,
# int * rows,
# double * elements,
Expand Down

0 comments on commit b663405

Please sign in to comment.