summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2007-03-19 17:06:23 (GMT)
committerdgp <dgp@noemail.net>2007-03-19 17:06:23 (GMT)
commit713eef3a92cc9a2f39ee7b8d08a2065db267432a (patch)
treed4afeb9f0c63cd80b0121107034e2c1ec4220f98 /generic/tclPkg.c
parent1e2d7f6101b59e1ac1b62c57a7ab8a525bb55983 (diff)
downloadtcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.zip
tcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.tar.gz
tcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.tar.bz2
* generic/tclEvent.c (Tcl_CreateThread): Replaced some calls to
* generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging. FossilOrigin-Name: 801b5dc41c0bffb2278f82825a7cda803f16faaf
Diffstat (limited to 'generic/tclPkg.c')
-rw-r--r--generic/tclPkg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index 5115442..df209ea 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPkg.c,v 1.9.2.8 2006/12/05 17:44:44 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclPkg.c,v 1.9.2.9 2007/03/19 17:06:26 dgp Exp $
*
* TIP #268.
* Heavily rewritten to handle the extend version numbers, and extended
@@ -1762,7 +1762,7 @@ CheckVersionAndConvert(interp, string, internal, stable)
/* 4* assuming that each char is a separator (a,b become ' -x ').
* 4+ to have spce for an additional -2 at the end
*/
- char* ibuf = Tcl_Alloc (4+4*strlen(string));
+ char* ibuf = ckalloc (4+4*strlen(string));
char* ip = ibuf;
/* Basic rules
@@ -1834,7 +1834,7 @@ CheckVersionAndConvert(interp, string, internal, stable)
error:
#ifdef TCL_TIP268
- Tcl_Free (ibuf);
+ ckfree (ibuf);
#endif
Tcl_AppendResult(interp, "expected version number but got \"",
string, "\"", (char *) NULL);