File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ TclStrIdxTreeFree(
156
156
TclStrIdxTreeFree (tree -> childTree .firstPtr );
157
157
}
158
158
t = tree , tree = tree -> nextPtr ;
159
- ckfree (t );
159
+ Tcl_Free (t );
160
160
}
161
161
}
162
162
@@ -239,7 +239,7 @@ TclStrIdxTreeBuildFromList(
239
239
240
240
/* create lowercase reflection of the list keys */
241
241
242
- lwrv = (Tcl_Obj * * )ckalloc (sizeof (Tcl_Obj * ) * lstc );
242
+ lwrv = (Tcl_Obj * * )Tcl_Alloc (sizeof (Tcl_Obj * ) * lstc );
243
243
if (lwrv == NULL ) {
244
244
return TCL_ERROR ;
245
245
}
@@ -288,7 +288,7 @@ TclStrIdxTreeBuildFromList(
288
288
* but don't split by fulfilled child of found item ( ii->iii->iiii ) */
289
289
if (foundItem -> length != (f - s )) {
290
290
/* 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 ));
292
292
if (item == NULL ) {
293
293
goto done ;
294
294
}
@@ -306,7 +306,7 @@ TclStrIdxTreeBuildFromList(
306
306
}
307
307
}
308
308
/* append item at end of found parent */
309
- item = (TclStrIdx * )ckalloc (sizeof (TclStrIdx ));
309
+ item = (TclStrIdx * )Tcl_Alloc (sizeof (TclStrIdx ));
310
310
if (item == NULL ) {
311
311
goto done ;
312
312
}
@@ -325,7 +325,7 @@ TclStrIdxTreeBuildFromList(
325
325
for (i = 0 ; i < lstc ; i ++ ) {
326
326
Tcl_DecrRefCount (lwrv [i ]);
327
327
}
328
- ckfree (lwrv );
328
+ Tcl_Free (lwrv );
329
329
}
330
330
331
331
if (ret != TCL_OK ) {
You can’t perform that action at this time.
0 commit comments