summaryrefslogtreecommitdiffstats
path: root/testpar/t_pflush2.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-02-18 21:17:15 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-02-18 21:17:15 (GMT)
commit79d94c7bb74d28884b3f666a5922a317ef907398 (patch)
tree2d7ea794644df0a231a958c1ded2d5c18057b920 /testpar/t_pflush2.c
parent63d38ca75a9527cc427e607ef301e5aa0261936e (diff)
downloadhdf5-79d94c7bb74d28884b3f666a5922a317ef907398.zip
hdf5-79d94c7bb74d28884b3f666a5922a317ef907398.tar.gz
hdf5-79d94c7bb74d28884b3f666a5922a317ef907398.tar.bz2
[svn-r26222] call H5close before MPI_Finalize() and close some objects that could be potentially left open.
Diffstat (limited to 'testpar/t_pflush2.c')
-rw-r--r--testpar/t_pflush2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/testpar/t_pflush2.c b/testpar/t_pflush2.c
index 743a3d3..e450f75 100644
--- a/testpar/t_pflush2.c
+++ b/testpar/t_pflush2.c
@@ -101,13 +101,17 @@ check_file(char* name, hid_t fapl)
if(H5Dclose(dset) < 0) goto error;
if(H5Fclose(file) < 0) goto error;
if(H5Pclose(plist) < 0) goto error;
+ if(H5Sclose(space) < 0) goto error;
return 0;
error:
H5E_BEGIN_TRY {
- H5Fclose(file);
H5Pclose(plist);
+ H5Gclose(groups);
+ H5Dclose(dset);
+ H5Fclose(file);
+ H5Sclose(space);
} H5E_END_TRY;
return 1;
}
@@ -205,6 +209,9 @@ main(int argc, char* argv[])
puts(" Test not compatible with current Virtual File Driver");
}
+ /* close HDF5 library */
+ H5close();
+
MPI_Finalize();
return 0;