summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.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 /src/H5Tvlen.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 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 450d61c..9218fdd 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -541,7 +541,7 @@ H5T__vlen_mem_seq_write(H5VL_object_t H5_ATTR_UNUSED *file, const H5T_vlen_alloc
"application memory allocation routine failed for VL data")
} /* end if */
else /* Default to system malloc */
- if (NULL == (vl.p = HDmalloc(len)))
+ if (NULL == (vl.p = malloc(len)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTALLOC, FAIL, "memory allocation failed for VL data")
/* Copy the data into the newly allocated buffer */
@@ -734,7 +734,7 @@ H5T__vlen_mem_str_write(H5VL_object_t H5_ATTR_UNUSED *file, const H5T_vlen_alloc
"application memory allocation routine failed for VL data")
} /* end if */
else /* Default to system malloc */
- if (NULL == (t = (char *)HDmalloc((seq_len + 1) * base_size)))
+ if (NULL == (t = (char *)malloc((seq_len + 1) * base_size)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTALLOC, FAIL, "memory allocation failed for VL data")
/* 'write' the string into the buffer, with memcpy() */
@@ -1074,7 +1074,7 @@ H5T__vlen_reclaim(void *elem, const H5T_t *dt, H5T_vlen_alloc_info_t *alloc_info
if (free_func != NULL)
(*free_func)(vl->p, free_info);
else
- HDfree(vl->p);
+ free(vl->p);
} /* end if */
}
else if (dt->shared->u.vlen.type == H5T_VLEN_STRING) {
@@ -1082,7 +1082,7 @@ H5T__vlen_reclaim(void *elem, const H5T_t *dt, H5T_vlen_alloc_info_t *alloc_info
if (free_func != NULL)
(*free_func)(*(char **)elem, free_info);
else
- HDfree(*(char **)elem);
+ free(*(char **)elem);
}
else {
assert(0 && "Invalid VL type");