Patchwork [fortran,22/22] Various minor fixups

login
register
mail settings
Submitter Mikael Morin
Date Oct. 5, 2010, 10:11 a.m.
Message ID <20101005100948.1836.54158@gimli.local>
Download mbox | patch
Permalink /patch/66804/
State New
Headers show

Comments

Mikael Morin - Oct. 5, 2010, 10:11 a.m.
2010-10-04  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-stmt.c (gfc_trans_allocate): free lhs expr.

Patch

diff --git a/trans-stmt.c b/trans-stmt.c
index 82cddd7..dcab260 100644
--- a/trans-stmt.c
+++ b/trans-stmt.c
@@ -4567,6 +4567,7 @@  gfc_trans_allocate (gfc_code * code)
 			fold_convert (TREE_TYPE (lse.expr), tmp));
 		}
 	    }
+	  gfc_free_expr (lhs);
 	}
 
     }