@@ -335,7 +335,7 @@ H5RT__bulk_load(H5RT_node_t *node, int rank, H5RT_leaf_t *leaves, size_t count,
335335 assert (child_leaf_start + leaves_left <= leaves + count );
336336
337337 /* Allocate this child node */
338- if (NULL == (node - > children .nodes [i ] = H5FL_CALLOC (H5RT_node_t )))
338+ if (NULL == (node - > children .nodes [i ] = H5FL_MALLOC (H5RT_node_t )))
339339 HGOTO_ERROR (H5E_RESOURCE , H5E_CANTALLOC , FAIL , "failed to allocate memory for R - tree node ");
340340
341341 child_leaf_count = (leaves_left < slab_size ) ? leaves_left : slab_size ;
@@ -386,8 +386,7 @@ H5RT_create(int rank, H5RT_leaf_t *leaves, size_t count)
386386 if (count == 0 )
387387 HGOTO_ERROR (H5E_ARGS , H5E_BADVALUE , NULL , "r - tree must have at least one leaf ");
388388
389- /* TBD: May replace with malloc for optimization */
390- if (NULL == (rtree = H5FL_CALLOC (H5RT_t )))
389+ if (NULL == (rtree = H5FL_MALLOC (H5RT_t )))
391390 HGOTO_ERROR (H5E_RESOURCE , H5E_CANTALLOC , NULL , "failed to allocate memory for R - tree ");
392391
393392 rtree -> rank = rank ;
@@ -445,7 +444,7 @@ H5RT__search_recurse(H5RT_node_t *node, int rank, hsize_t min[], hsize_t max[],
445444
446445 if (H5RT__leaves_intersect (rank , min , max , curr_min , curr_max )) {
447446 /* We found an intersecting leaf, create a result structure for it */
448- if (NULL == (new_result = H5FL_CALLOC (H5RT_result_t )))
447+ if (NULL == (new_result = H5FL_MALLOC (H5RT_result_t )))
449448 HGOTO_ERROR (H5E_RESOURCE , H5E_CANTALLOC , FAIL , "failed to allocate result structure" );
450449
451450 new_result -> leaf = curr_leaf ;
0 commit comments