summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-09-12 06:03:58 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-09-12 06:03:58 (GMT)
commit6e9ba2e13dea34945e461cd4acaacc50f46a8405 (patch)
treea33343679d3fdb30d76d619fb04ffab09e8d5c50 /src/H5Tvlen.c
parentbbb67c5ec564c44ecc3bb0d84968e60fdee0790b (diff)
downloadhdf5-6e9ba2e13dea34945e461cd4acaacc50f46a8405.zip
hdf5-6e9ba2e13dea34945e461cd4acaacc50f46a8405.tar.gz
hdf5-6e9ba2e13dea34945e461cd4acaacc50f46a8405.tar.bz2
[svn-r11385] Purpose:
Code cleanup Description: Merge back changes from "compact group" work that improve the infrastructure of the library and may impact others. In this round of merging, that includes: - Move datatype allocation into single internal routine, instead of duplicated code that was spread out in a dozen or so places. - Clean up guts of object header routines (H5O_*) to allow for some of the fancieroperations that need to be performed on groups, along with some general improvements. - Added a new error code - Some minor cleanups in other code.... Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 Mac OS X
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 9a11e9c..423a004 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -165,13 +165,8 @@ H5T_vlen_create(const H5T_t *base)
assert(base);
/* Build new type */
- if (NULL==(dt = H5FL_CALLOC(H5T_t)))
+ if(NULL == (dt = H5T_alloc()))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
- if (NULL==(dt->shared = H5FL_CALLOC(H5T_shared_t))) {
- H5FL_FREE(H5T_t, dt);
- HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL,"memory allocation failed")
- }
- dt->ent.header = HADDR_UNDEF;
dt->shared->type = H5T_VLEN;
/*