summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 618a58f..ee3029e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2005-09-23 Don Porter <dgp@users.sourceforge.net>
+
+ [kennykb-numerics-branch]
+
+ * generic/tclStrToD.c: Memory leak. Comment in TclSetBignumIntRep
+ * generic/tclObj.c: indicates that mp_init() is called on the
+ bignumValue argument to clear it, while keeping the digits array
+ transferred to the interp of the Tcl_Obj. The implication is that
+ callers of TclSetBignumIntRep() (and their callers) need not call
+ mp_clear(), but can imagine they've transferred ownership of an
+ mp_int value to Tcl. However, mp_init() doesn't merely re-initialize
+ the fields of an mp_int to hold the value zero. It also allocates
+ a fresh dp array of minimum size governed by MP_PREC. Without a
+ corresponding mp_clear() call somewhere, these dp arrays are leaked.
+ Added some mp_clear() calls to fix the leak, but better fix strategies
+ should still be pursued. Perhaps the best approach is to just
+ invade the mp_int struct and do the necessary surgery ourselves.
+
2005-09-20 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]