#17320: Memory leaks with LP Solvers are back
--------------------------------------+------------------------
Reporter: pmueller | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: linear programming | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+------------------------
Comment (by nbruin):
The following is fishy in `coin_backend.pyx`:
{{{
def __cinit__(self, maximization = True):
...
self.si = new OsiClpSolverInterface()
self.model = new CbcModel(self.si[0])
...
def __dealloc__(self):
del self.si
}}}
If deleting `self.si` is required in dealloc, shouldn't `self.model` be
deleted as well? (this indicates to me that cython has grown enough
understanding of C++ to know how to translate a "del" on a C++ object?)
My money is on that we're leaking `CbcModel`s.
--
Ticket URL: <http://trac.sagemath.org/ticket/17320#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.