summaryrefslogtreecommitdiffstats
path: root/test/stab.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stab.c')
-rw-r--r--test/stab.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/stab.c b/test/stab.c
index 779d4bb..41c494f 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -213,12 +213,12 @@ test_long(hid_t fcpl, hid_t fapl, hbool_t new_format)
TEST_ERROR;
/* Group names */
- name1 = (char *)HDmalloc((size_t)LONG_NAME_LEN);
+ name1 = (char *)malloc((size_t)LONG_NAME_LEN);
for (i = 0; i < LONG_NAME_LEN; i++)
name1[i] = (char)('A' + i % 26);
name1[LONG_NAME_LEN - 1] = '\0';
size_t name2Len = (2 * LONG_NAME_LEN) + 2;
- name2 = (char *)HDmalloc(name2Len);
+ name2 = (char *)malloc(name2Len);
HDsnprintf(name2, name2Len, "%s/%s", name1, name1);
/* Create groups */
@@ -246,8 +246,8 @@ test_long(hid_t fcpl, hid_t fapl, hbool_t new_format)
TEST_ERROR;
/* Release name buffers */
- HDfree(name2);
- HDfree(name1);
+ free(name2);
+ free(name1);
PASSED();
return 0;
@@ -258,8 +258,8 @@ error:
H5Gclose(g1);
H5Gclose(g2);
H5Fclose(fid);
- HDfree(name2);
- HDfree(name1);
+ free(name2);
+ free(name1);
}
H5E_END_TRY
return 1;
@@ -668,7 +668,7 @@ long_compact(hid_t fcpl, hid_t fapl2)
TEST_ERROR;
/* Construct very long object name template */
- if (NULL == (objname = (char *)HDmalloc((size_t)(LONG_COMPACT_LENGTH + 1))))
+ if (NULL == (objname = (char *)malloc((size_t)(LONG_COMPACT_LENGTH + 1))))
TEST_ERROR;
HDmemset(objname, 'a', (size_t)LONG_COMPACT_LENGTH);
objname[LONG_COMPACT_LENGTH] = '\0';
@@ -752,7 +752,7 @@ long_compact(hid_t fcpl, hid_t fapl2)
TEST_ERROR;
/* Free object name */
- HDfree(objname);
+ free(objname);
objname = NULL;
/* Close top group */
@@ -788,7 +788,7 @@ error:
H5E_END_TRY
if (objname)
- HDfree(objname);
+ free(objname);
return 1;
} /* end long_compact() */