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/fortran/ChangeLog | |
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/fortran/ChangeLog')
-rw-r--r-- | gcc/fortran/ChangeLog | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 57a9997..662e3d2 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,13 @@ +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 Pierre-Marie de Rodat <derodat@adacore.com> * f95-lang.c (gfc_create_decls): Register the main translation unit @@ -258,7 +268,7 @@ PR fortran/66044 * decl.c(gfc_match_entry): Change a gfc_internal_error() into - a gfc_error() + a gfc_error() 2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org> |