[PATCH, Fortran, pr79230, v1] [7 Regression] [OOP] Run time error: double free or corruption
Andre Vehreschild
vehre@gmx.de
Sat Feb 4 12:00:00 GMT 2017
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr79230_v1.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170204/54823513/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr79230_v1.patch
Type: text/x-patch
Size: 1474 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170204/54823513/attachment.bin>
More information about the Fortran
mailing list