diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-03-01 20:09:40 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-03-01 20:09:40 (GMT) |
commit | 77dedb3c64efeb1636696f6ab19163f66986aac4 (patch) | |
tree | 5f9725fe138a355dbd904699bd4115a09c54bc8d /test/th5o.c | |
parent | 00eea738d6e6ff9ad237e6a3b652baac3c6d6845 (diff) | |
download | hdf5-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.c | 4 |
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); |