diff options
Diffstat (limited to 'tools/h5stat/h5stat_gentest.c')
-rw-r--r-- | tools/h5stat/h5stat_gentest.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/h5stat/h5stat_gentest.c b/tools/h5stat/h5stat_gentest.c index 02bd136..b1ab168 100644 --- a/tools/h5stat/h5stat_gentest.c +++ b/tools/h5stat/h5stat_gentest.c @@ -121,10 +121,10 @@ gen_newgrat_file(const char *fname) goto error; if(H5Dclose(did) < 0) goto error; - if(H5Tclose(tid) < 0) - goto error; if(H5Sclose(sid) < 0) goto error; + if(H5Tclose(tid) < 0) + goto error; if(H5Fclose(fid) < 0) goto error; @@ -133,15 +133,14 @@ error: H5Pclose(fapl); H5Pclose(fcpl); H5Aclose(attr_id); + H5Dclose(did); H5Tclose(tid); H5Sclose(sid); H5Gclose(gid); - H5Dclose(did); H5Fclose(fid); } H5E_END_TRY; } /* gen_newgrat_file() */ - /* * Generate an HDF5 file with groups, datasets, attributes for testing the options: * -l N (--links=N): Set the threshold for # of links when printing information for small groups. |