dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17550
[Bug 521221] [NEW] Memory leak in std_vector_typemaps.i interface
Public bug reported:
There is a memory leak in
%typemap (in) CONST_VECTOR std::vector<CONST dolfin::TYPE *>
&(std::vector<CONST dolfin::TYPE *> tmp_vec)
which is due to mixed-up ownership. For example, for the coefficients
passed through this interface from the Python Form constructor to the
cpp Form constructor, their destructor is never called.
** Affects: dolfin
Importance: Critical
Assignee: Johan Hake (johan-hake)
Status: Confirmed
** Changed in: dolfin
Importance: Undecided => Critical
** Changed in: dolfin
Status: New => Confirmed
** Changed in: dolfin
Assignee: (unassigned) => Johan Hake (johan-hake)
** Changed in: dolfin
Milestone: None => 0.9.7
--
Memory leak in std_vector_typemaps.i interface
https://bugs.launchpad.net/bugs/521221
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
Status in DOLFIN: Confirmed
Bug description:
There is a memory leak in
%typemap (in) CONST_VECTOR std::vector<CONST dolfin::TYPE *> &(std::vector<CONST dolfin::TYPE *> tmp_vec)
which is due to mixed-up ownership. For example, for the coefficients passed through this interface from the Python Form constructor to the cpp Form constructor, their destructor is never called.
Follow ups
References