diff options
| author | Paul Thomas <pault@gcc.gnu.org> | 2015-10-18 18:36:52 +0000 |
|---|---|---|
| committer | Paul Thomas <pault@gcc.gnu.org> | 2015-10-18 18:36:52 +0000 |
| commit | 926614c44b568f41e05d661848a661a62dd8a2f7 (patch) | |
| tree | 212fef6b7ea19529b9ba06936cd448b98d45853a /libjava/java/sql/Struct.h | |
| parent | 0243dce0a8af8054d5cd68fe6236c21070b17cc2 (diff) | |
re PR fortran/66079 (memory leak with source allocation in internal subprogram)
2015-10-18 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-10-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/66079
* gfortran.dg/allocatable_scalar_13.f90: New test
From-SVN: r228952
Diffstat (limited to 'libjava/java/sql/Struct.h')
0 files changed, 0 insertions, 0 deletions
