summaryrefslogtreecommitdiffstats
path: root/examples/h5dsm_dset_w1m.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2017-03-08 22:05:43 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2017-03-08 22:05:43 (GMT)
commit86bc81b4fda4a4b7f06e522b1d4c87a71102174e (patch)
tree10816f013e26032c9bf699319c236200891b7cc3 /examples/h5dsm_dset_w1m.c
parent190dd5cf46fa13e86bb8669dbe1af14ca890217c (diff)
downloadhdf5-86bc81b4fda4a4b7f06e522b1d4c87a71102174e.zip
hdf5-86bc81b4fda4a4b7f06e522b1d4c87a71102174e.tar.gz
hdf5-86bc81b4fda4a4b7f06e522b1d4c87a71102174e.tar.bz2
Fix attribute datatype conversion implementation to always supply
background buffer for compound conversion, as the library requires (despite the reference manual saying it's optional). Added h5dsm_ttconv.c to test this. Other minor fixes/cleanup.
Diffstat (limited to 'examples/h5dsm_dset_w1m.c')
-rw-r--r--examples/h5dsm_dset_w1m.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/h5dsm_dset_w1m.c b/examples/h5dsm_dset_w1m.c
index 566bef8..42b1281 100644
--- a/examples/h5dsm_dset_w1m.c
+++ b/examples/h5dsm_dset_w1m.c
@@ -81,10 +81,11 @@ int main(int argc, char *argv[]) {
if(H5Dclose(ndset) < 0)
ERROR;
if(H5Fclose(file) < 0)
- if(H5Fclose(file) < 0)
ERROR;
if(H5Fclose(nfile) < 0)
ERROR;
+ if(H5Sclose(space) < 0)
+ ERROR;
if(H5Pclose(fapl) < 0)
ERROR;
free(buf);
@@ -102,6 +103,7 @@ error:
H5Dclose(ndset);
H5Fclose(file);
H5Fclose(nfile);
+ H5Sclose(space);
H5Pclose(fapl);
} H5E_END_TRY;