diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2020-04-07 02:32:28 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2020-04-07 02:32:28 (GMT) |
commit | c566935876dc1bcba6ee4fcf2571c410ffb16312 (patch) | |
tree | 677c9ba9d4970e4d5d872fa4d2387c630f4828c1 /src/H5Dint.c | |
parent | 9b8d28754a425889fc5c36e0149c49453dd7ed3c (diff) | |
download | hdf5-c566935876dc1bcba6ee4fcf2571c410ffb16312.zip hdf5-c566935876dc1bcba6ee4fcf2571c410ffb16312.tar.gz hdf5-c566935876dc1bcba6ee4fcf2571c410ffb16312.tar.bz2 |
Fix error in previous merge: should use NULL instead of FAIL.
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r-- | src/H5Dint.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index 173ae3f..977940d 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -1418,18 +1418,16 @@ done: HDONE_ERROR(H5E_DATASET, H5E_CANTRESET, NULL, "unable to reset external file list info") if(new_dset->shared->space && H5S_close(new_dset->shared->space) < 0) HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release dataspace") - if(new_dset->shared->type) { if(new_dset->shared->type_id > 0) { if(H5I_dec_ref(new_dset->shared->type_id) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release datatype") + HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release datatype") } /* end if */ else { if(H5T_close_real(new_dset->shared->type) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release datatype") + HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release datatype") } /* end else */ } /* end if */ - if(H5F_addr_defined(new_dset->oloc.addr)) { if(H5O_dec_rc_by_loc(&(new_dset->oloc)) < 0) HDONE_ERROR(H5E_DATASET, H5E_CANTDEC, NULL, "unable to decrement refcount on newly created object") |