summaryrefslogtreecommitdiffstats
path: root/test/external_common.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 /test/external_common.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 'test/external_common.c')
-rw-r--r--test/external_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/external_common.c b/test/external_common.c
index 7d72605..25bf43e 100644
--- a/test/external_common.c
+++ b/test/external_common.c
@@ -46,7 +46,7 @@ reset_raw_data_files(hbool_t is_env)
/* Set up garbage buffer */
garbage_count = N_EXT_FILES * GARBAGE_PER_FILE;
- if (NULL == (garbage = (uint8_t *)HDcalloc(garbage_count, sizeof(uint8_t))))
+ if (NULL == (garbage = (uint8_t *)calloc(garbage_count, sizeof(uint8_t))))
goto error;
for (i = 0; i < garbage_count; i++)
garbage[i] = 0xFF;
@@ -113,13 +113,13 @@ reset_raw_data_files(hbool_t is_env)
HDclose(fd);
} /* end for */
- HDfree(garbage);
+ free(garbage);
return SUCCEED;
error:
if (fd)
HDclose(fd);
if (garbage)
- HDfree(garbage);
+ free(garbage);
return FAIL;
}