This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 60922: [4.9/5 regression] Memory leak with allocatable CLASS components
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Tobias Burnus <burnus at net-b dot de>
- Date: Thu, 22 Jan 2015 16:37:40 +0100
- Subject: Re: [Patch, Fortran, OOP] PR 60922: [4.9/5 regression] Memory leak with allocatable CLASS components
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qjQzp3qDaA=Y62KiL2Ed_As5bz9AKu+Cd69hLAMahdDJw at mail dot gmail dot com>
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.