[Patch, Fortran, OOP] PR 59589: [4.9 Regression] Memory leak when deallocating polymorphic
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Jan 6 23:00:00 GMT 2014
On Mon, Jan 06, 2014 at 11:28:51PM +0100, Janus Weil wrote:
>
> here is a regression fix for polymorphic deallocation. The attached
> patch is identical in functionality to the one-liner in comment 13 of
> the PR, fixing a bug in the detection of finalizable components (with
> include allocatable components).
>
> All it does in addition to the one-liner is to encapsulate the code
> necessary to detect finalizable components into a function, which is
> then used in two different places. This makes the code less
> error-prone and more readable.
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>
Yes.
PS: Thanks for the recent spurt of bugfixes.
--
Steve
More information about the Fortran
mailing list