https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60913
--- Comment #9 from Chris <cmacmackin at gmail dot com> --- Last I heard, gfortran still doesn't invoke finalisation in this situation. In any case, while (in my main code) I could certainly reduce the volume of leaked memory via finalisation (by deallocating arrays contained in the derived type variable), it wouldn't work to deallocate the variable itself.