diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-02-25 17:29:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-02-25 17:29:30 (GMT) |
commit | 0ce8fddc735c588dcd5667f9fce44033500a4465 (patch) | |
tree | 3f1827decf83be1f796735a2a2485b806a537658 /src/H5S.c | |
parent | 2dae07556928721290360fb2393bb928e2367527 (diff) | |
download | hdf5-0ce8fddc735c588dcd5667f9fce44033500a4465.zip hdf5-0ce8fddc735c588dcd5667f9fce44033500a4465.tar.gz hdf5-0ce8fddc735c588dcd5667f9fce44033500a4465.tar.bz2 |
[svn-r26301] Description:
Bring Neil's fix for error in H5S_extent_copy() back to the trunk.
Tested on:
Mac OSX/64 10.10.2 (amazon) w/serial
(h5committest forthcoming)
Diffstat (limited to 'src/H5S.c')
-rw-r--r-- | src/H5S.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -509,6 +509,10 @@ H5S_extent_copy(H5S_extent_t *dst, const H5S_extent_t *src, hbool_t copy_max) FUNC_ENTER_NOAPI(FAIL) + /* Release destination extent before we copy over it */ + if(H5S_extent_release(dst) < 0) + HGOTO_ERROR(H5E_DATASPACE, H5E_CANTRELEASE, FAIL, "unable to release dataspace extent") + /* Copy the regular fields */ dst->type = src->type; dst->version = src->version; @@ -583,7 +587,7 @@ H5S_copy(const H5S_t *src, hbool_t share_selection, hbool_t copy_max) FUNC_ENTER_NOAPI(NULL) - if(NULL == (dst = H5FL_MALLOC(H5S_t))) + if(NULL == (dst = H5FL_CALLOC(H5S_t))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") /* Copy the source dataspace's extent */ |