From e896d31ae256ebc07d9586839c6fe958c7ce6bc6 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 28 Jul 2000 15:13:30 -0500 Subject: [svn-r2447] Another small calculation optimization. --- src/H5FL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5FL.c b/src/H5FL.c index d584a35..0db2b32 100644 --- a/src/H5FL.c +++ b/src/H5FL.c @@ -1220,7 +1220,7 @@ H5FL_arr_alloc(H5FL_arr_head_t *head, uintn elem, uintn clear) } /* end if */ /* Otherwise allocate a node */ else { - if (NULL==(new_obj = H5MM_malloc(sizeof(H5FL_arr_node_t)+head->size*elem))) + if (NULL==(new_obj = H5MM_malloc(sizeof(H5FL_arr_node_t)+mem_size))) HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); /* Increment the number of blocks allocated in list */ -- cgit v0.12