allocatable_scalar_13.f90
2.12 KB
-
re PR fortran/66079 (memory leak with source allocation in internal subprogram) · 26e46e4b
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
Paul Thomas committed