diff options
author | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-09-23 14:37:35 (GMT) |
---|---|---|
committer | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-09-23 14:37:35 (GMT) |
commit | c15f8674d9600c72b33823c55587051cf66811ef (patch) | |
tree | c79984664ec5db115a5354b881b6174fa3cb70d2 /src/H5Sselect.c | |
parent | febc343e7ebd8469fbbd87f2f727d9e42a6be589 (diff) | |
download | hdf5-c15f8674d9600c72b33823c55587051cf66811ef.zip hdf5-c15f8674d9600c72b33823c55587051cf66811ef.tar.gz hdf5-c15f8674d9600c72b33823c55587051cf66811ef.tar.bz2 |
Free selection type-specific info when resetting selection iterators
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index d021f0c..5ba0f8d 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -3153,6 +3153,10 @@ H5Ssel_iter_reset(hid_t sel_iter_id, hid_t space_id) if(NULL == (space = (H5S_t *)H5I_object_verify(space_id, H5I_DATASPACE))) HGOTO_ERROR(H5E_DATASPACE, H5E_BADTYPE, FAIL, "not a dataspace") + /* Call selection type-specific release routine */ + if(H5S_SELECT_ITER_RELEASE(sel_iter) < 0) + HGOTO_ERROR(H5E_DATASPACE, H5E_CANTRELEASE, FAIL, "problem releasing a selection iterator's type-specific info") + /* Simply re-initialize iterator */ if(H5S_select_iter_init(sel_iter, space, sel_iter->elmt_size, sel_iter->flags) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to re-initialize selection iterator") |