diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2010-10-06 16:39:27 +0000 |
---|---|---|
committer | Mikael Morin <mikael@gcc.gnu.org> | 2010-10-06 16:39:27 +0000 |
commit | c956e9af46f6467e438e6e5154da43778ebc116f (patch) | |
tree | e5b8dd46a9a671079c68b2afcc2f69c402eb8d44 /gcc | |
parent | fcba55090ebe6aa1ab7e9f27d4ccee41b04e8a00 (diff) | |
download | gcc-c956e9af46f6467e438e6e5154da43778ebc116f.zip gcc-c956e9af46f6467e438e6e5154da43778ebc116f.tar.gz gcc-c956e9af46f6467e438e6e5154da43778ebc116f.tar.bz2 |
trans-stmt.c (gfc_trans_allocate): free lhs expr.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* trans-stmt.c (gfc_trans_allocate): free lhs expr.
From-SVN: r165053
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/trans-stmt.c | 1 |
2 files changed, 5 insertions, 0 deletions
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 <mikael@gcc.gnu.org> + * trans-stmt.c (gfc_trans_allocate): free lhs expr. + +2010-10-06 Mikael Morin <mikael@gcc.gnu.org> + * 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); } } |