summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2008-02-28 17:36:46 (GMT)
committerdgp <dgp@noemail.net>2008-02-28 17:36:46 (GMT)
commitd2c25e701821c3dd0b1d3b3c6def955f36e64c59 (patch)
treef029549ff3fe6ff29c0b83cdf5069af0063a289b /generic/tclStringObj.c
parentf239ce03219061793b6c8f3c36e3da99ba32afbf (diff)
downloadtcl-d2c25e701821c3dd0b1d3b3c6def955f36e64c59.zip
tcl-d2c25e701821c3dd0b1d3b3c6def955f36e64c59.tar.gz
tcl-d2c25e701821c3dd0b1d3b3c6def955f36e64c59.tar.bz2
* generic/tclStringObj.c (Tcl_AppendFormatToObj): [format %llx $big]
leaked an mp_int. FossilOrigin-Name: 120da645b732501695e3bfb165037f4e0d7e65c7
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 57b1669..9664726 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.69 2008/01/10 16:09:23 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.70 2008/02/28 17:36:49 dgp Exp $ */
#include "tclInt.h"
#include "tommath.h"
@@ -2154,6 +2154,9 @@ Tcl_AppendFormatToObj(
}
bits /= base;
}
+ if (useBig) {
+ mp_clear(&big);
+ }
if (gotPrecision) {
while (length < precision) {
Tcl_AppendToObj(segment, "0", 1);