re PR fortran/48700 (memory leak with MOVE_ALLOC)
authorJanus Weil <janus@gcc.gnu.org>
Wed, 18 May 2011 18:51:08 +0000 (20:51 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 18 May 2011 18:51:08 +0000 (20:51 +0200)
commit8199eea14f1ab32d805cc4be98ecfb5424a78671
treead7ecddf948f98d5f55288d89f5c8fa76fad0fd2
parentb5ee67520324dd4185e13374613b55970cfe5169
re PR fortran/48700 (memory leak with MOVE_ALLOC)

2011-05-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48700
* trans-intrinsic.c (gfc_conv_intrinsic_move_alloc): Deallocate 'TO'
argument to avoid memory leaks.

2011-05-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48700
* gfortran.dg/move_alloc_4.f90: New.

From-SVN: r173874
gcc/fortran/trans-intrinsic.c
gcc/testsuite/gfortran.dg/move_alloc_4.f90 [new file with mode: 0644]