diff options
| author | Kevin B Kenny <kennykb@acm.org> | 2005-10-21 20:30:43 (GMT) |
|---|---|---|
| committer | Kevin B Kenny <kennykb@acm.org> | 2005-10-21 20:30:43 (GMT) |
| commit | 2d9b88ff6e8d03fa92c5c3f001e835c566ee6927 (patch) | |
| tree | b17c5929251c2c6784afdd04854f85994b7cf09c /generic/tclStrToD.c | |
| parent | f37646e26347a81c07c1688bdfa54dd158f04c51 (diff) | |
| download | tcl-2d9b88ff6e8d03fa92c5c3f001e835c566ee6927.zip tcl-2d9b88ff6e8d03fa92c5c3f001e835c566ee6927.tar.gz tcl-2d9b88ff6e8d03fa92c5c3f001e835c566ee6927.tar.bz2 | |
Bug 1334461
Diffstat (limited to 'generic/tclStrToD.c')
| -rwxr-xr-x | generic/tclStrToD.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 7c2d6a8..398d33d 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStrToD.c,v 1.12 2005/10/13 15:23:22 dkf Exp $ + * RCS: @(#) $Id: tclStrToD.c,v 1.13 2005/10/21 20:30:43 kennykb Exp $ * *---------------------------------------------------------------------- */ @@ -1616,6 +1616,8 @@ RefineApproximation( */ if (mp_cmp_mag(&twoMd, &twoMv) == MP_LT) { + mp_clear(&twoMd); //EPM + mp_clear(&twoMv); //EPM return approxResult; } @@ -2080,7 +2082,7 @@ TclInitDoubleConversion(void) maxpow10_wide = (int) floor(sizeof(Tcl_WideUInt) * CHAR_BIT * log(2.) / log(10.)); pow10_wide = (Tcl_WideUInt *) - Tcl_Alloc((maxpow10_wide + 1) * sizeof(Tcl_WideUInt)); + ckalloc((maxpow10_wide + 1) * sizeof(Tcl_WideUInt)); //EPM NETKIT u = 1; for (i = 0; i < maxpow10_wide; ++i) { pow10_wide[i] = u; |
