summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2020-09-23 23:16:04 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2020-09-23 23:16:04 (GMT)
commitc4b1693f8e5df2d9dc5f5cbc0b2d80557df8ca35 (patch)
treec79984664ec5db115a5354b881b6174fa3cb70d2
parentfebc343e7ebd8469fbbd87f2f727d9e42a6be589 (diff)
parentc15f8674d9600c72b33823c55587051cf66811ef (diff)
downloadhdf5-c4b1693f8e5df2d9dc5f5cbc0b2d80557df8ca35.zip
hdf5-c4b1693f8e5df2d9dc5f5cbc0b2d80557df8ca35.tar.gz
hdf5-c4b1693f8e5df2d9dc5f5cbc0b2d80557df8ca35.tar.bz2
Merge pull request #2895 in HDFFV/hdf5 from ~JHENDERSON/hdf52:develop to develop
* commit 'c15f8674d9600c72b33823c55587051cf66811ef': Free selection type-specific info when resetting selection iterators
-rw-r--r--src/H5Sselect.c4
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")