summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-07-16 21:29:19 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-07-16 21:29:19 (GMT)
commit780c595269ad4e851d26d2ec8ba695b3452fbe21 (patch)
tree57dd18355d3259b98bd483723daa69692440cac7 /generic/tclStrToD.c
parent17e8b8c78b5e27af69840be8b58596569f0f76e9 (diff)
downloadtcl-780c595269ad4e851d26d2ec8ba695b3452fbe21.zip
tcl-780c595269ad4e851d26d2ec8ba695b3452fbe21.tar.gz
tcl-780c595269ad4e851d26d2ec8ba695b3452fbe21.tar.bz2
Tk Bug 1227781
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-xgeneric/tclStrToD.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index ab2701d..b28a60e 100755
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -15,7 +15,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.6 2005/07/05 11:37:02 dkf Exp $
+ * RCS: @(#) $Id: tclStrToD.c,v 1.7 2005/07/16 21:29:23 kennykb Exp $
*
*----------------------------------------------------------------------
*/
@@ -675,6 +675,8 @@ RefineResult(double approxResult, /* Approximate result of conversion. */
*/
if (mp_cmp_mag(&twoMd, &twoMv) == MP_LT) {
+ mp_clear(&twoMd);
+ mp_clear(&twoMv);
return approxResult;
}