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/tsohm.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/tsohm.c')
-rw-r--r-- | test/tsohm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tsohm.c b/test/tsohm.c index a8d46f1..eb5f7c5 100644 --- a/test/tsohm.c +++ b/test/tsohm.c @@ -3144,6 +3144,8 @@ static void test_sohm_extlink_helper(hid_t src_fcpl_id, hid_t dst_fcpl_id) /* Close the dataset and both files to make sure everything gets flushed * out of memory */ + ret = H5Sclose(space_id); + CHECK_I(ret, "H5Sclose"); ret = H5Dclose(dset_id); CHECK_I(ret, "H5Dclose"); ret = H5Fclose(src_file_id); @@ -3201,6 +3203,9 @@ test_sohm_extlink(void) test_sohm_extlink_helper(fcpl_id, H5P_DEFAULT); test_sohm_extlink_helper(H5P_DEFAULT, fcpl_id); test_sohm_extlink_helper(fcpl_id, fcpl_id); + + ret = H5Pclose(fcpl_id); + CHECK_I(ret, "H5Pclose"); } @@ -3788,6 +3793,9 @@ test_sohm_extend_dset(void) CHECK_I(ret, "test_sohm_extend_dset_helper"); ret = test_sohm_extend_dset_helper(fcpl_id, TRUE); CHECK_I(ret, "test_sohm_extend_dset_helper"); + + ret = H5Pclose(fcpl_id); + CHECK_I(ret, "H5Pclose"); } |