summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-11 03:00:14 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-11 03:00:14 (GMT)
commitcf38292064a0c3ffc6971de31573bbd1dab25b80 (patch)
tree3de4fb27cbdf847cf18462c866b2902a61930275 /src/H5Sselect.c
parent832aced6c17f40ae19eab2e8e8ca47e1fb304688 (diff)
downloadhdf5-cf38292064a0c3ffc6971de31573bbd1dab25b80.zip
hdf5-cf38292064a0c3ffc6971de31573bbd1dab25b80.tar.gz
hdf5-cf38292064a0c3ffc6971de31573bbd1dab25b80.tar.bz2
Fix for HDFFV-10333:
1) Check for valid object header version for a refcount messge 2) Check for invalid fill value size 3) Check for invalid dimension size in a layout message 4) Add --enable-error-stack option to h5stat 5) Add error checks to h5stat.c 6) Add tests to h5stat and h5dump
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 4462295..8cd73d9 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -160,7 +160,7 @@ H5S_select_release(H5S_t *ds)
HDassert(ds);
/* Call the selection type's release function */
- if((ret_value = (*ds->select.type->release)(ds)) < 0)
+ if((ds->select.type) && ((ret_value = (*ds->select.type->release)(ds)) < 0))
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTRELEASE, FAIL, "unable to release selection")
done: