[Patch, Fortran] PR 58058: [4.7/4.8/4.9 Regression] Memory leak with transfer function

Janus Weil janus@gcc.gnu.org
Sat Aug 3 16:14:00 GMT 2013


Hi all,

the attached patch plugs a memory leak of the TRANSFER intrinsic,
which can occur when transferring to CHARACTER strings. For details
see the PR.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk/4.8/4.7?

Cheers,
Janus


2013-08-03  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/58058
    * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Free the temporary
    string, if necessary.

2013-08-03  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/58058
    * gfortran.dg/transfer_intrinsic_6.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr58058.diff
Type: application/octet-stream
Size: 1105 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130803/cc25de74/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transfer_intrinsic_6.f90
Type: application/octet-stream
Size: 458 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130803/cc25de74/attachment-0001.obj>


More information about the Gcc-patches mailing list