summaryrefslogtreecommitdiffstats
path: root/win/tclWinLoad.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-08 19:00:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-08 19:00:39 (GMT)
commit1812305cb35d0096d50f9b1e7c1c368f230b6f07 (patch)
tree29a9a607c030b3cfa6c0ae744822eb76de21ee86 /win/tclWinLoad.c
parentfe34611d8ec24bd6dd816cf00fa8ac15355bde79 (diff)
parent99e9ce3656f195c60ba4e928559c05d47167901c (diff)
downloadtcl-1812305cb35d0096d50f9b1e7c1c368f230b6f07.zip
tcl-1812305cb35d0096d50f9b1e7c1c368f230b6f07.tar.gz
tcl-1812305cb35d0096d50f9b1e7c1c368f230b6f07.tar.bz2
TIP #494 implementation: More use of size_t in Tcl 9
Diffstat (limited to 'win/tclWinLoad.c')
-rw-r--r--win/tclWinLoad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinLoad.c b/win/tclWinLoad.c
index 69263e9..3d0b804 100644
--- a/win/tclWinLoad.c
+++ b/win/tclWinLoad.c
@@ -170,7 +170,7 @@ TclpDlopen(
* Succeded; package everything up for Tcl.
*/
- handlePtr = ckalloc(sizeof(struct Tcl_LoadHandle_));
+ handlePtr = Tcl_Alloc(sizeof(struct Tcl_LoadHandle_));
handlePtr->clientData = (ClientData) hInstance;
handlePtr->findSymbolProcPtr = &FindSymbol;
handlePtr->unloadFileProcPtr = &UnloadFile;
@@ -255,7 +255,7 @@ UnloadFile(
HINSTANCE hInstance = (HINSTANCE) loadHandle->clientData;
FreeLibrary(hInstance);
- ckfree(loadHandle);
+ Tcl_Free(loadHandle);
}
/*
@@ -416,7 +416,7 @@ InitDLLDirectoryName(void)
*/
copyToGlobalBuffer:
- dllDirectoryName = ckalloc((nameLen+1) * sizeof(WCHAR));
+ dllDirectoryName = Tcl_Alloc((nameLen+1) * sizeof(WCHAR));
wcscpy(dllDirectoryName, name);
return TCL_OK;
}