summaryrefslogtreecommitdiffstats
path: root/testpar/t_cache.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 22:48:12 (GMT)
committerGitHub <noreply@github.com>2023-06-28 22:48:12 (GMT)
commitaebac33a1f290fa5065bce96bb0512317a34c283 (patch)
treecdbae6dbd65a2eb4e6f786921ee907cec92c92d3 /testpar/t_cache.c
parent605cea4af60cfcbe03a54f697de392eec75e5a85 (diff)
downloadhdf5-aebac33a1f290fa5065bce96bb0512317a34c283.zip
hdf5-aebac33a1f290fa5065bce96bb0512317a34c283.tar.gz
hdf5-aebac33a1f290fa5065bce96bb0512317a34c283.tar.bz2
Remove HD from memory allocate/free calls (#3195)
* HDcalloc * HDfree * HDmalloc * HDrealloc
Diffstat (limited to 'testpar/t_cache.c')
-rw-r--r--testpar/t_cache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c
index 63e086c..1de9b56 100644
--- a/testpar/t_cache.c
+++ b/testpar/t_cache.c
@@ -6853,18 +6853,18 @@ main(int argc, char **argv)
goto finish;
}
- if (NULL == (data = HDmalloc(NUM_DATA_ENTRIES * sizeof(*data)))) {
+ if (NULL == (data = malloc(NUM_DATA_ENTRIES * sizeof(*data)))) {
printf(" Couldn't allocate data array. Exiting.\n");
MPI_Abort(MPI_COMM_WORLD, -1);
}
- if (NULL == (data_index = HDmalloc(NUM_DATA_ENTRIES * sizeof(*data_index)))) {
+ if (NULL == (data_index = malloc(NUM_DATA_ENTRIES * sizeof(*data_index)))) {
printf(" Couldn't allocate data index array. Exiting.\n");
MPI_Abort(MPI_COMM_WORLD, -1);
}
HDmemset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
- if (NULL == (filenames[i] = HDmalloc(PATH_MAX))) {
+ if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
MPI_Abort(MPI_COMM_WORLD, -1);
}
@@ -6986,9 +6986,9 @@ main(int argc, char **argv)
finish:
if (data_index)
- HDfree(data_index);
+ free(data_index);
if (data)
- HDfree(data);
+ free(data);
/* make sure all processes are finished before final report, cleanup
* and exit.