diff options
author | mistachkin <mistachkin@noemail.net> | 2009-03-16 00:43:08 (GMT) |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2009-03-16 00:43:08 (GMT) |
commit | 4fec56ae4acd1ee95d29857f3a6eea1412da1ae9 (patch) | |
tree | f2cd1de3f4bd6ac95a11882faee7f00fc5dd033c /generic/tclThread.c | |
parent | 99840678eac28404a52ba51546fe17bbea33d397 (diff) | |
download | tcl-4fec56ae4acd1ee95d29857f3a6eea1412da1ae9.zip tcl-4fec56ae4acd1ee95d29857f3a6eea1412da1ae9.tar.gz tcl-4fec56ae4acd1ee95d29857f3a6eea1412da1ae9.tar.bz2 |
revise fix for [Bug 2687952]
FossilOrigin-Name: f40909689940f5a978f78b5db6d18a93e57af7d1
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r-- | generic/tclThread.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c index 314a4fb..58cc18d 100644 --- a/generic/tclThread.c +++ b/generic/tclThread.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: tclThread.c,v 1.24 2009/03/15 22:34:59 dkf Exp $ + * RCS: @(#) $Id: tclThread.c,v 1.25 2009/03/16 00:43:09 mistachkin Exp $ */ #include "tclInt.h" @@ -88,10 +88,7 @@ Tcl_GetThreadData( result = TclThreadStorageKeyGet(keyPtr); if (result == NULL) { - result = TclpSysAlloc((size_t) size, 0); - if (result == NULL) { - Tcl_Panic("unable to alloc %u bytes", (unsigned) size); - } + result = ckalloc((size_t)size); memset(result, 0, (size_t) size); TclThreadStorageKeySet(keyPtr, result); } |