← Back to team overview

dolfin team mailing list archive

[Bug 521221] Re: Memory leak in std_vector_typemaps.i interface

 

Should be fixed now

johan

** Changed in: dolfin
       Status: Confirmed => Fix Committed

-- 
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.





Follow ups

References