http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49466
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janus at gcc dot gnu.org --- Comment #1 from janus at gcc dot gnu.org 2011-06-19 15:27:55 UTC --- (In reply to comment #0) > In the attached sample code, which is a reduced test case from the full code, > the assignment "as_b = as_a" leaks memory from the U(:) allocatable component > (which is defined in state_t, the parent type), but not from the W(:) > allocatable component (which is defined in astate_t). Sorry, I'm not able to reproduce the memory leak with gfortran version 4.5 and valgrind. Could you please tell me which gfortran version you use and how you detect the memory leak?