From: Bernhard Reutner-Fischer <al...@gcc.gnu.org>

Hi!

These patches for the go, rust and fortran frontends fix the mpfr and
mpz memory leaks my coccinelle script found.

Bootstrapped and regtested without regressions on x86_64-unknown-linux,
including go,rust,fortran.

Ok for trunk for the fortran bits?

I'd hope that go and rust can apply the respective patches upstream.

Bernhard Reutner-Fischer (3):
  go: Fix memory leak in Integer_expression
  rust: Fix memory leak in compile_{integer,float}_literal
  Fortran: Fix mpz and mpfr memory leaks

 gcc/fortran/array.cc                  | 3 +++
 gcc/fortran/expr.cc                   | 8 ++++----
 gcc/fortran/simplify.cc               | 7 ++++++-
 gcc/go/gofrontend/expressions.cc      | 5 +++++
 gcc/rust/backend/rust-compile-expr.cc | 7 +++++++
 5 files changed, 25 insertions(+), 5 deletions(-)

-- 
2.30.2

Reply via email to