From cc9ce9ffd6a66a6eb5a317d9c027228753d6e490 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Tue, 15 Mar 2011 08:56:16 +0000 Subject: [PATCH] * arith.c (arith_power): Plug memory leak. From-SVN: r170980 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/arith.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 503b7b8c3d4..05f8e6be2a4 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2011-03-15 Francois-Xavier Coudert + + * arith.c (arith_power): Plug memory leak. + 2011-03-12 Janus Weil PR fortran/48059 diff --git a/gcc/fortran/arith.c b/gcc/fortran/arith.c index 2a9ea750103..53a9dad42fe 100644 --- a/gcc/fortran/arith.c +++ b/gcc/fortran/arith.c @@ -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; } -- 2.30.2