summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-07-28 20:13:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-07-28 20:13:30 (GMT)
commite896d31ae256ebc07d9586839c6fe958c7ce6bc6 (patch)
tree5c68233a8702a5cb6b7739a48576fbbbe2545bd2 /src
parent958d2ef179869643b6fe7b7c4439471a76565e20 (diff)
downloadhdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.zip
hdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.tar.gz
hdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.tar.bz2
[svn-r2447] Another small calculation optimization.
Diffstat (limited to 'src')
-rw-r--r--src/H5FL.c2
1 files changed, 1 insertions, 1 deletions
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 */