dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17556
[Bug 521221] Re: Memory leak in std_vector_typemaps.i interface
Fixed in
http://bazaar.launchpad.net/~dolfin-core/dolfin/main/revision/4501
--
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 Committed
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