This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran, OOP] PR 60922: [4.9/5 regression] Memory leak with allocatable CLASS components


Ping!



2015-01-18 11:46 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> Hi all,
>
> the attached patch is close to trivial and fixes a memory-leak
> regression that appeared after the implementation of finalization.
>
> My suspicion it that it's simply a copy'n'paste error, where the wrong
> attribute was copied from very similar code a few lines above, but I'd
> like to have that confirmed by the original author (which should be
> Tobias).
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.9?
>
> Cheers,
> Janus
>
>
> 2015-01-18  Janus Weil  <janus@gcc.gnu.org>
>
>     PR fortran/60922
>     * class.c (finalize_component): Apply the check for 'fini_coarray' only
>     to coarray components.
>
> 2015-01-18  Janus Weil  <janus@gcc.gnu.org>
>
>     PR fortran/60922
>     * gfortran.dg/class_allocate_17.f90: Extended.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]