From 2898659623bb137dddc77cc70308cf4111f6c610 Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 6 Oct 2010 16:39:27 +0000 Subject: [PATCH] 2010-10-06 Mikael Morin * trans-stmt.c (gfc_trans_allocate): free lhs expr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165053 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/trans-stmt.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 6a2316d..355ed14 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,9 @@ 2010-10-06 Mikael Morin + * trans-stmt.c (gfc_trans_allocate): free lhs expr. + +2010-10-06 Mikael Morin + * trans-array.c (gfc_free_ss_chain): Made non-static. * trans-array.h (gfc_free_ss_chain): New prototype. * trans-stmt.c (gfc_trans_where_2): Free ss chains. diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c index c0ffd16..70ddd51 100644 --- a/gcc/fortran/trans-stmt.c +++ b/gcc/fortran/trans-stmt.c @@ -4567,6 +4567,7 @@ gfc_trans_allocate (gfc_code * code) fold_convert (TREE_TYPE (lse.expr), tmp)); } } + gfc_free_expr (lhs); } } -- 2.7.4