summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-03-01 20:09:40 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-03-01 20:09:40 (GMT)
commit77dedb3c64efeb1636696f6ab19163f66986aac4 (patch)
tree5f9725fe138a355dbd904699bd4115a09c54bc8d /test/tfile.c
parent00eea738d6e6ff9ad237e6a3b652baac3c6d6845 (diff)
downloadhdf5-77dedb3c64efeb1636696f6ab19163f66986aac4.zip
hdf5-77dedb3c64efeb1636696f6ab19163f66986aac4.tar.gz
hdf5-77dedb3c64efeb1636696f6ab19163f66986aac4.tar.bz2
[svn-r23322] HDFFV-8322: Close resources, found from valgrind testing
Tested: local linux
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/tfile.c b/test/tfile.c
index 8ee0b64..e669bd0 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -526,6 +526,9 @@ test_file_open(void)
/* Close dataset from first open */
ret = H5Dclose(did);
CHECK(ret, FAIL, "H5Dclose");
+
+ ret = H5Pclose(fapl_id);
+ CHECK(ret, FAIL, "H5Pclose");
} /* test_file_open() */
/****************************************************************
@@ -1060,6 +1063,9 @@ test_get_file_id(void)
VERIFY(fid2, FAIL, "H5Iget_file_id");
/* Close objects */
+ ret = H5Pclose(plist);
+ CHECK(ret, FAIL, "H5Pclose");
+
ret = H5Tclose(datatype_id);
CHECK(ret, FAIL, "H5Tclose");
@@ -2855,7 +2861,7 @@ test_filespace_sects(void)
test_free_sections(fapl_stdio, filename);
/* close fapl and remove the file */
- h5_cleanup(FILENAME, fapl_split);
+ h5_cleanup(FILENAME, fapl_stdio);
/* CORE */
MESSAGE(5, ("Testing File free space information for a core file\n"));
@@ -3223,6 +3229,9 @@ test_libver_bounds_real(H5F_libver_t libver_create, unsigned oh_vers_create,
ret = H5Fclose(file);
CHECK(ret, FAIL, "H5Fclose");
+
+ ret = H5Pclose(fapl);
+ CHECK(ret, FAIL, "H5Pclose");
} /* end test_libver_bounds_real() */
/****************************************************************