dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17671
[Bug 521221] Re: Memory leak in std_vector_typemaps.i interface
** Changed in: dolfin
Status: Fix Committed => Fix Released
--
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: Fix Released
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.
References