From 33b625ed6060fea016d99cf268cc68287a93ca0c Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 1 Dec 2014 17:28:28 +0000 Subject: [PATCH] PR jit/63854: Fix leak in real.c for i386:init_ext_80387_constants gcc/ChangeLog: PR jit/63854 * real.c (real_from_string): Add missing mpfr_clear. From-SVN: r218233 --- gcc/ChangeLog | 5 +++++ gcc/real.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6063549cd28..c0248c29796 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-01 David Malcolm + + PR jit/63854 + * real.c (real_from_string): Add missing mpfr_clear. + 2014-12-01 David Malcolm PR jit/63854 diff --git a/gcc/real.c b/gcc/real.c index cebbe8d7a7e..5e8050dbbb7 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2067,6 +2067,7 @@ real_from_string (REAL_VALUE_TYPE *r, const char *str) gcc_assert (r->cl = rvc_normal); /* Set a sticky bit if mpfr_strtofr was inexact. */ r->sig[0] |= inexact; + mpfr_clear (m); } } -- 2.30.2