Message ID | D60CD2AE-FF68-493B-BE06-431A10BF24D4@gmail.com |
---|---|
State | New |
Headers | show |
FX wrote: > While looking at the use of gfc_free() in the front-end when discussing its removal, I noticed one instance where gfc_free_expr() should be used instead. The patch that fixes it is: OK. Thanks for the patch! Tobias > 2011-03-12 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org> > > * arith.c (arith_power): Plug memory leak.
Index: arith.c =================================================================== --- arith.c (revision 170612) +++ arith.c (working copy) @@ -912,7 +912,7 @@ { 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; }