diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-07-28 20:13:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-07-28 20:13:30 (GMT) |
commit | e896d31ae256ebc07d9586839c6fe958c7ce6bc6 (patch) | |
tree | 5c68233a8702a5cb6b7739a48576fbbbe2545bd2 | |
parent | 958d2ef179869643b6fe7b7c4439471a76565e20 (diff) | |
download | hdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.zip hdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.tar.gz hdf5-e896d31ae256ebc07d9586839c6fe958c7ce6bc6.tar.bz2 |
[svn-r2447] Another small calculation optimization.
-rw-r--r-- | src/H5FL.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |