https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61830
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu.org
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #5)
> The ICE is fixed by the patch submitted at
> https://gcc.gnu.org/ml/fortran/2015-10/msg00117.html.
The "memory leak" comes about because of the POINTER component map. This
allocation is still accessible at termination and is fixed by:
...snip....
! This gets rid of the "memory leak"
if (associated (u%u(1)%map)) deallocate (u%u(1)%map)
call free_v_field(u)
call v%free()
deallocate(av)
end program