summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-08-14 19:58:35 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-08-14 19:58:35 (GMT)
commit1eff550df3e20882f438b9fe54a34b2601041a31 (patch)
tree02544b102de1a1b38a06c2a28b2eb5434d007f57 /src/H5Pdcpl.c
parentcefda2ef0c51922a9ab925b0f28b0c2a24a8c050 (diff)
downloadhdf5-1eff550df3e20882f438b9fe54a34b2601041a31.zip
hdf5-1eff550df3e20882f438b9fe54a34b2601041a31.tar.gz
hdf5-1eff550df3e20882f438b9fe54a34b2601041a31.tar.bz2
[svn-r27506] H5Dset_extent no longer holds all printf source datasets open.
Other items identified during reviews. Tested: ummon
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 787c88b..b70004b 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1931,10 +1931,12 @@ done:
if(adding_entry) {
hbool_t free_list = FALSE;
- /* Set chunk information in property list. If we are adding a new layout,
- * use H5P__set_layout so other fields are initialized properly. If we are
- * extending the layout, just use H5P_set directly so we don't mess with
- * anything else. */
+ /* Set VDS layout information in property list. If we are adding a new
+ * layout, use H5P__set_layout so other fields are initialized properly.
+ * If we are extending the layout, just use H5P_set directly so we don't
+ * mess with anything else. Put this after the done: label because the
+ * original list may no longer be valid due to the use of realloc(), so
+ * we want to make sure the list is available if possible. */
if(new_layout) {
if(H5P__set_layout(plist, &layout) < 0) {
HDONE_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set layout")