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/th5s.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/th5s.c')
-rw-r--r-- | test/th5s.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/th5s.c b/test/th5s.c index a026545..ebbaa37 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -182,14 +182,13 @@ test_h5s_basic(void) fid1 = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT); CHECK_I(fid1, "H5Fopen"); if (fid1 >= 0){ - dset1 = H5Dopen2(fid1, "dset", H5P_DEFAULT); - VERIFY(dset1, FAIL, "H5Dopen2"); - ret = H5Fclose(fid1); - CHECK_I(ret, "H5Fclose"); + dset1 = H5Dopen2(fid1, "dset", H5P_DEFAULT); + VERIFY(dset1, FAIL, "H5Dopen2"); + ret = H5Fclose(fid1); + CHECK_I(ret, "H5Fclose"); } else - printf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", - testfile); + printf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", testfile); } /* Verify that incorrect dimensions don't work */ |