[PATCH, Fortran, pr79230, v1] [7 Regression] [OOP] Run time error: double free or corruption
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sat Feb 4 17:03:00 GMT 2017
Hi Andre,
This looks fine to me - OK for trunk.
Thanks
Paul
On 4 February 2017 at 11:59, Andre Vehreschild <vehre@gmx.de> wrote:
> Hi all,
>
> attached patch fixes a regression when a polymorphic pointer component was
> present. The results was a double free. The attached patch fixes this, by not
> caring about freeing pointer components as part of gfortran's memory management,
> i.e., the programmer has to take care about freeing/disassociating the pointer
> using a finalizer, as is IMO the intention of the Fortran standard.
>
> Bootstrapped and regtested ok on x86_64-linux/f25. Ok for trunk (current or
> next, haven't monitored whether commits are still allowed)?
>
> Regards,
> Andre
> --
> Andre Vehreschild * Email: vehre ad gmx dot de
--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein
More information about the Fortran
mailing list