summaryrefslogtreecommitdiffstats
path: root/tools/h5stat
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-03-23 17:42:06 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-03-23 17:42:06 (GMT)
commit5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7 (patch)
treeac24638ebced42fb499ad3e526781b0a6687c5fa /tools/h5stat
parent710d1caf54cc4edb47ef83280b6d5a1af445b9d1 (diff)
downloadhdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.zip
hdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.tar.gz
hdf5-5a9a9e8f0ee8bee687c99bcc3a1b2414e10a9ba7.tar.bz2
[svn-r29534] Normalization w/ revise_chunks in preparation for big merge.
tools directory Also fixes a minor Java test output error. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial w/ Java, Fortran, & C++
Diffstat (limited to 'tools/h5stat')
-rw-r--r--tools/h5stat/h5stat_gentest.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/h5stat/h5stat_gentest.c b/tools/h5stat/h5stat_gentest.c
index 100f5b2..ad7d093 100644
--- a/tools/h5stat/h5stat_gentest.c
+++ b/tools/h5stat/h5stat_gentest.c
@@ -43,7 +43,6 @@
/*
* Generate HDF5 file with latest format with
* NUM_GRPS groups and NUM_ATTRS attributes for the dataset
- *
*/
static void
gen_newgrat_file(const char *fname)
@@ -111,6 +110,10 @@ gen_newgrat_file(const char *fname)
} /* end for */
/* Close dataset, dataspace, datatype, file */
+ if(H5Pclose(fapl) < 0)
+ goto error;
+ if(H5Pclose(fcpl) < 0)
+ goto error;
if(H5Dclose(did) < 0)
goto error;
if(H5Sclose(sid) < 0)
@@ -122,6 +125,8 @@ gen_newgrat_file(const char *fname)
error:
H5E_BEGIN_TRY {
+ H5Pclose(fapl);
+ H5Pclose(fcpl);
H5Aclose(attr_id);
H5Dclose(did);
H5Tclose(tid);
@@ -129,7 +134,6 @@ error:
H5Gclose(gid);
H5Fclose(fid);
} H5E_END_TRY;
-
} /* gen_newgrat_file() */
/*