Memory leaks in derived types revisited

TitleMemory leaks in derived types revisited
Publication TypeJournal Articles
Year of Publication2003
AuthorsStewart G.W
JournalSIGPLAN Fortran Forum
Volume22
Issue3
Pagination25 - 27
Date Published2003/12//
ISBN Number1061-7264
Abstract

In a note in the Fortran Forum, Markus describes a technique for avoiding memory leaks with derived types. In this note, we show by a simple example that this technique does not work when the object in question is a parameter in nested subprogram invocations. A fix is proposed and illustrated with code from MATRAN, a Fortran 95 package for performing matrix manipulations.

URLhttp://doi.acm.org/10.1145/962180.962183
DOI10.1145/962180.962183