summaryrefslogtreecommitdiffstats
path: root/test/dangle.c
diff options
context:
space:
mode:
authorhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
committerhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
commit04a2d68778bc978ac62b03b5b5bfa034e2ced7f7 (patch)
tree8eb0dde943224b0caed11dee349862ce7a9aefa6 /test/dangle.c
parente2f6e6f62f8885e85540c870ff3e3370b7617c79 (diff)
parentd3074fa8bd8cb5eb266741203b68ce9129c2d7dc (diff)
downloadhdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.zip
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.gz
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.bz2
Merge branch 'develop' of ssh://bitbucket.hdfgroup.org:7999/~hdftest/hdf5_hft into develop
Diffstat (limited to 'test/dangle.c')
-rw-r--r--test/dangle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dangle.c b/test/dangle.c
index 75e9c84..9f30f10 100644
--- a/test/dangle.c
+++ b/test/dangle.c
@@ -602,7 +602,8 @@ test_dangle_force(void)
TEST_ERROR;
/* Allocate the array of object IDs */
- objs = (hid_t*)HDmalloc(sizeof(hid_t) * (size_t)count);
+ if(NULL == (objs = (hid_t *)HDcalloc((size_t)count, sizeof(hid_t))))
+ TEST_ERROR;
/* Get the list of open IDs */
if(H5Fget_obj_ids((hid_t)H5F_OBJ_ALL, H5F_OBJ_ALL, (size_t)count, objs) < 0)