diff options
| author | dgp@users.sourceforge.net <dgp> | 2007-03-19 16:59:06 (GMT) | 
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2007-03-19 16:59:06 (GMT) | 
| commit | 55dd91d9aabc2d68b7ff48fc489e46023d76cde3 (patch) | |
| tree | fa41016732a9e446bfb70eb52970688c69463f11 /generic/tclEvent.c | |
| parent | 0fcdfff6ada890b2e7f7758f7460e97e20f7943c (diff) | |
| download | tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.zip tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.tar.gz tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.tar.bz2 | |
        * generic/tclBasic.c (Tcl_CreateMathFunc):      Replaced some
        * generic/tclEvent.c (Tcl_CreateThread):        calls to Tcl_Alloc()
        * generic/tclObj.c (UpdateStringOfBignum):      with calls to
        * unix/tclUnixTime.c (SetTZIfNecessary):        ckalloc(), which better
        * win/tclAppInit.c (setargv):   supports memory debugging.
Diffstat (limited to 'generic/tclEvent.c')
| -rw-r--r-- | generic/tclEvent.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/generic/tclEvent.c b/generic/tclEvent.c index 2f03444..ff92252 100644 --- a/generic/tclEvent.c +++ b/generic/tclEvent.c @@ -12,7 +12,7 @@   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tclEvent.c,v 1.70 2007/03/12 19:28:49 dgp Exp $ + * RCS: @(#) $Id: tclEvent.c,v 1.71 2007/03/19 16:59:08 dgp Exp $   */  #include "tclInt.h" @@ -1290,7 +1290,7 @@ NewThreadProc(      cdPtr = (ThreadClientData *) clientData;      threadProc = cdPtr->proc;      threadClientData = cdPtr->clientData; -    Tcl_Free((char *) clientData);	/* Allocated in Tcl_CreateThread() */ +    ckfree((char *) clientData);	/* Allocated in Tcl_CreateThread() */      (*threadProc)(threadClientData); @@ -1329,7 +1329,7 @@ Tcl_CreateThread(  #ifdef TCL_THREADS      ThreadClientData *cdPtr; -    cdPtr = (ThreadClientData *) Tcl_Alloc(sizeof(ThreadClientData)); +    cdPtr = (ThreadClientData *) ckalloc(sizeof(ThreadClientData));      cdPtr->proc = proc;      cdPtr->clientData = clientData; | 
