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]

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


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.

Attachment: pr58058.diff
Description: Binary data

Attachment: transfer_intrinsic_6.f90
Description: Binary data


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