Commit cc9ce9ff by Francois-Xavier Coudert Committed by François-Xavier Coudert

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

From-SVN: r170980
parent 0d2e205e
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> 2011-03-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/48059 PR fortran/48059
......
...@@ -912,7 +912,7 @@ arith_power (gfc_expr *op1, gfc_expr *op2, gfc_expr **resultp) ...@@ -912,7 +912,7 @@ arith_power (gfc_expr *op1, gfc_expr *op2, gfc_expr **resultp)
{ {
gfc_error ("Raising a negative REAL at %L to " gfc_error ("Raising a negative REAL at %L to "
"a REAL power is prohibited", &op1->where); "a REAL power is prohibited", &op1->where);
gfc_free (result); gfc_free_expr (result);
return ARITH_PROHIBIT; return ARITH_PROHIBIT;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment