summaryrefslogtreecommitdiffstats
path: root/test/th5o.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/th5o.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/th5o.c')
-rw-r--r--test/th5o.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/th5o.c b/test/th5o.c
index c46751e..a470f4c 100644
--- a/test/th5o.c
+++ b/test/th5o.c
@@ -111,6 +111,8 @@ test_h5o_open(void)
CHECK(dspace, FAIL, "H5Dget_space");
/* Close the IDs */
+ ret = H5Sclose(dspace);
+ CHECK(ret, FAIL, "H5Sclose");
ret = H5Gclose(grp);
CHECK(ret, FAIL, "H5Gclose");
ret = H5Tclose(dtype);
@@ -324,6 +326,8 @@ test_h5o_open_by_addr(void)
CHECK(dspace, FAIL, "H5Dget_space");
/* Close the IDs */
+ ret = H5Sclose(dspace);
+ CHECK(ret, FAIL, "H5Sclose");
ret = H5Gclose(grp);
CHECK(ret, FAIL, "H5Gclose");
ret = H5Tclose(dtype);