Skip to content

Commit bfa6e2e

Browse files
author
jan.nijtmans
committed
Oops, ckalloc -> Tcl_Alloc
1 parent 8912060 commit bfa6e2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

generic/tclStrIdxTree.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TclStrIdxTreeFree(
156156
TclStrIdxTreeFree(tree->childTree.firstPtr);
157157
}
158158
t = tree, tree = tree->nextPtr;
159-
ckfree(t);
159+
Tcl_Free(t);
160160
}
161161
}
162162

@@ -239,7 +239,7 @@ TclStrIdxTreeBuildFromList(
239239

240240
/* create lowercase reflection of the list keys */
241241

242-
lwrv = (Tcl_Obj **)ckalloc(sizeof(Tcl_Obj*) * lstc);
242+
lwrv = (Tcl_Obj **)Tcl_Alloc(sizeof(Tcl_Obj*) * lstc);
243243
if (lwrv == NULL) {
244244
return TCL_ERROR;
245245
}
@@ -288,7 +288,7 @@ TclStrIdxTreeBuildFromList(
288288
* but don't split by fulfilled child of found item ( ii->iii->iiii ) */
289289
if (foundItem->length != (f - s)) {
290290
/* first split found item (insert one between parent and found + new one) */
291-
item = (TclStrIdx *)ckalloc(sizeof(TclStrIdx));
291+
item = (TclStrIdx *)Tcl_Alloc(sizeof(TclStrIdx));
292292
if (item == NULL) {
293293
goto done;
294294
}
@@ -306,7 +306,7 @@ TclStrIdxTreeBuildFromList(
306306
}
307307
}
308308
/* append item at end of found parent */
309-
item = (TclStrIdx *)ckalloc(sizeof(TclStrIdx));
309+
item = (TclStrIdx *)Tcl_Alloc(sizeof(TclStrIdx));
310310
if (item == NULL) {
311311
goto done;
312312
}
@@ -325,7 +325,7 @@ TclStrIdxTreeBuildFromList(
325325
for (i = 0; i < lstc; i++) {
326326
Tcl_DecrRefCount(lwrv[i]);
327327
}
328-
ckfree(lwrv);
328+
Tcl_Free(lwrv);
329329
}
330330

331331
if (ret != TCL_OK) {

0 commit comments

Comments
 (0)