diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2015-06-11 15:49:32 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2015-06-11 15:49:32 +0000 |
commit | 26e46e4b94267360451114c8fc1ec5ee6ef5e6a6 (patch) | |
tree | 772bb92e54ad124ab4c61669c427440420730654 /gcc/c | |
parent | 133bc698cb8f42e3655fc68fee19c62fd18d98f7 (diff) | |
download | gcc-26e46e4b94267360451114c8fc1ec5ee6ef5e6a6.zip gcc-26e46e4b94267360451114c8fc1ec5ee6ef5e6a6.tar.gz gcc-26e46e4b94267360451114c8fc1ec5ee6ef5e6a6.tar.bz2 |
re PR fortran/66079 (memory leak with source allocation in internal subprogram)
2015-06-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/66079
* trans-expr.c (gfc_conv_procedure_call): Allocatable scalar
function results must be freed and nullified after use. Create
a temporary to hold the result to prevent duplicate calls.
* trans-stmt.c (gfc_trans_allocate): Rename temporary variable
as 'source'. Deallocate allocatable components of non-variable
'source's.
2015-06-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/66079
* gfortran.dg/allocatable_scalar_13.f90: New test
From-SVN: r224383
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions