* arith.c (arith_power): Plug memory leak.
From-SVN: r170980
This commit is contained in:
parent
0d2e205e34
commit
cc9ce9ffd6
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue