Fortran array of derived types and memory leaks despite finalization
In the description of the finalization process we see (Fortran 2008, 4.5.6.2) If the dynamic type of the entity has a final subroutine whose dummy argument has the same kind type parameters and rank as the entity being finalized, it is called with the entity as an actual argument. Otherwise, if there is an elemental … Read more