summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-25 13:07:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-25 13:07:59 (GMT)
commit3cf091e2d8b739ba3dfaabe7e178b28abe80e00e (patch)
tree679f1017e76d0436284b6fd6ad417469b14b3394 /unix
parent328fa692fbd773527e3f656e71f312717a9daed9 (diff)
downloadtcl-3cf091e2d8b739ba3dfaabe7e178b28abe80e00e.zip
tcl-3cf091e2d8b739ba3dfaabe7e178b28abe80e00e.tar.gz
tcl-3cf091e2d8b739ba3dfaabe7e178b28abe80e00e.tar.bz2
Another memory leak, and one Tcl_Free -> ckfree
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixTime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index c7921fe..926e8f4 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -503,7 +503,7 @@ SetTZIfNecessary(void)
if (lastTZ == NULL) {
Tcl_CreateExitHandler(CleanupMemory, NULL);
} else {
- Tcl_Free(lastTZ);
+ ckfree(lastTZ);
}
lastTZ = ckalloc(strlen(newTZ) + 1);
strcpy(lastTZ, newTZ);