gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-589-g54146e2


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-589-g54146e2
Date: Thu, 31 Jul 2014 16:50:24 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  54146e27c8fd7756a944d0e168aa969624567b55 (commit)
       via  e3f18c6702e67aabd90edea58a4edcc5d0495fdf (commit)
       via  825dd9a1839ca42c4ed6152de41515958e11660d (commit)
       via  59c75072583f4460c5eca6e0aae70f36dbaecd62 (commit)
      from  b223339f5b27d7deb0cd7e45f6f50624990fb336 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=54146e27c8fd7756a944d0e168aa969624567b55

commit 54146e27c8fd7756a944d0e168aa969624567b55
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jul 31 19:50:06 2014 +0300

    Fix memory leak in do_mpfr_div.

diff --git a/ChangeLog b/ChangeLog
index ced3cdc..e755234 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,12 @@
        * awk.h (cleanup_mpfr): Add declaration.
        * main.c (main): Add call to `cleanup_mpfr'.
 
+       Fix memory leak:
+
+       * mpfr.c (do_mpfr_div): Add unref to denominator and numerator
+       to not leak memory. Thanks to Katie Wasserman <address@hidden>
+       for isolating the problem to that routine.
+
 2014-07-25         Arnold D. Robbins     <address@hidden>
 
        * main.c (main): Add a warning message if -M is used and gawk was
diff --git a/mpfr.c b/mpfr.c
index 3c7cb5d..5224797 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -1248,6 +1248,8 @@ do_mpfr_div(int nargs)
        mpz_tdiv_qr(quotient->mpg_i, remainder->mpg_i, num->mpg_i, 
denom->mpg_i);
        unref(num);
        unref(denom);
+       unref(numerator);
+       unref(denominator);
 
        sub = make_string("quotient", 8);
        lhs = assoc_lookup(result, sub);

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e3f18c6702e67aabd90edea58a4edcc5d0495fdf

commit e3f18c6702e67aabd90edea58a4edcc5d0495fdf
Merge: b223339 825dd9a
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jul 31 19:43:17 2014 +0300

    Merge branch 'gawk-4.1-stable'


-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |   17 +++++++++++++++++
 awk.h     |    1 +
 dfa.c     |   16 +++++++++-------
 main.c    |    5 +++++
 mpfr.c    |   11 +++++++++++
 5 files changed, 43 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]