summaryrefslogtreecommitdiffstats
path: root/test/gen_bounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/gen_bounds.c')
-rw-r--r--test/gen_bounds.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/gen_bounds.c b/test/gen_bounds.c
index fb765f7..57b8026 100644
--- a/test/gen_bounds.c
+++ b/test/gen_bounds.c
@@ -148,7 +148,7 @@ gen_earliest_latest(void)
/*
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -210,7 +210,7 @@ gen_earliest_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -234,7 +234,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -293,7 +293,7 @@ gen_earliest_v18(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -325,7 +325,7 @@ gen_earliest_v18(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -349,7 +349,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -402,7 +402,7 @@ gen_latest_latest(void)
* Add a chunked dataset with layout version 4 (H5Pset_chunk_opts)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -437,7 +437,7 @@ gen_latest_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -459,7 +459,7 @@ error:
H5Sclose(space);
H5Pclose(dcpl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -520,7 +520,7 @@ gen_v18_latest(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -551,7 +551,7 @@ gen_v18_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close property list and dataset, will reuse dataspace */
@@ -575,7 +575,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -635,7 +635,7 @@ gen_v18_v18(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -712,7 +712,7 @@ gen_v18_v18(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -737,7 +737,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -1018,7 +1018,7 @@ gen_ref_files(const char *filename, H5F_libver_t low_bound, H5F_libver_t high_bo
* Create test file, attribute, group and dataset
*/
- if ((dwbuf = HDcalloc(sizeof(unsigned), 100)) == NULL)
+ if ((dwbuf = calloc(sizeof(unsigned), 100)) == NULL)
TEST_ERROR;
/* Create the test file */
@@ -1068,7 +1068,7 @@ gen_ref_files(const char *filename, H5F_libver_t low_bound, H5F_libver_t high_bo
TEST_ERROR;
if (dwbuf) {
- HDfree(dwbuf);
+ free(dwbuf);
dwbuf = NULL;
}
@@ -1201,7 +1201,7 @@ error:
H5Sclose(sid);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(dwbuf);
+ free(dwbuf);
}
H5E_END_TRY;