* arith.c (arith_power): Plug memory leak.

From-SVN: r170980
This commit is contained in:
Francois-Xavier Coudert 2011-03-15 08:56:16 +00:00 committed by François-Xavier Coudert
parent 0d2e205e34
commit cc9ce9ffd6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-03-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* arith.c (arith_power): Plug memory leak.
2011-03-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/48059

View File

@ -912,7 +912,7 @@ arith_power (gfc_expr *op1, gfc_expr *op2, gfc_expr **resultp)
{
gfc_error ("Raising a negative REAL at %L to "
"a REAL power is prohibited", &op1->where);
gfc_free (result);
gfc_free_expr (result);
return ARITH_PROHIBIT;
}