commit/XEmacs: Jerry James: Fix bignum/bigfloat memory leaks. See xemacs-patches message

[email protected] Tue, 23 Sep 2014 22:50:56 -0000
Newsgroups gmane.emacs.xemacs.patches
Message-ID <[email protected]>
1 new commit in XEmacs:

https://bitbucket.org/xemacs/xemacs/commits/be31f7878b0d/
Changeset:   be31f7878b0d
User:        Jerry James
Date:        2014-09-23 22:50:48+00:00
Summary:     Fix bignum/bigfloat memory leaks.  See xemacs-patches message
<CAHCOHQmYDTHSUhVSRmyGpoeUAX3kS6Ua14p6FcNzzDm0i3GaRQ@mail.gmail.com>.
Affected #:  2 files

diff -r 2f22818d92d42460586af6894cdbc4166cba3e6b -r be31f7878b0da33c1ba3b87862f589a9a7d4a659 src/ChangeLog
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-23  Jerry James  <[email protected]>
+
+	* floatfns.c (round_two_bignum_1): Fix memory leak.
+	(round_two_bigfloat): Ditto.
+
 2014-09-06  Aidan Kehoe  <[email protected]>
 
 	* select-x.c (Fx_store_cutbuffer_internal):

diff -r 2f22818d92d42460586af6894cdbc4166cba3e6b -r be31f7878b0da33c1ba3b87862f589a9a7d4a659 src/floatfns.c
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -1681,6 +1681,10 @@
       *res = make_bignum_bg (floored);
       *remain = make_bignum_bg (scratch_bignum);
     }
+  bignum_fini (flsecond);
+  bignum_fini (floored);
+  bignum_fini (flooring);
+  bignum_fini (hi2);
 }
 
 static Lisp_Object
@@ -1835,6 +1839,7 @@
   bigfloat_div (divided, XBIGFLOAT_DATA (number), XBIGFLOAT_DATA (divisor));
 
   res0 = round_one_bigfloat_1 (divided);
+  bigfloat_fini (divided);
 
   bigfloat_set_prec (scratch_bigfloat, prec);
   bigfloat_set_prec (scratch_bigfloat2, prec);

Repository URL: https://bitbucket.org/xemacs/xemacs/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.