mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Minor tweak to address JIRA HDFFV-10611 (which was already fixed).
This commit is contained in:
parent
4643860aa9
commit
5d9a93b61d
@ -155,7 +155,7 @@ H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id,
|
||||
|
||||
/* Set up VOL object */
|
||||
if(NULL == (new_obj = H5FL_CALLOC(H5VL_object_t)))
|
||||
HGOTO_ERROR(H5E_VOL, H5E_NOSPACE, FAIL, "can't allocate top object structure")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTALLOC, FAIL, "can't allocate top object structure")
|
||||
new_obj->connector = vol_obj->connector;
|
||||
new_obj->connector->nrefs ++;
|
||||
new_obj->data = data;
|
||||
@ -308,7 +308,7 @@ H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id)
|
||||
|
||||
/* Setup VOL object */
|
||||
if(NULL == (new_obj = H5FL_CALLOC(H5VL_object_t)))
|
||||
HGOTO_ERROR(H5E_VOL, H5E_NOSPACE, FAIL, "can't allocate top object structure")
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTALLOC, FAIL, "can't allocate top object structure")
|
||||
new_obj->connector = vol_obj->connector;
|
||||
new_obj->connector->nrefs ++;
|
||||
new_obj->data = dt;
|
||||
|
Loading…
Reference in New Issue
Block a user